Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package googleapis.firebase
import cats.effect.Concurrent
import org.http4s._
import org.http4s.implicits._
import org.http4s.client.Client
class ProjectsIosAppsClient[F[_]: Concurrent](client: Client[F]) extends AbstractClient[F](client) {
val baseUri = uri"https://firebase.googleapis.com/"
def undelete(
/** Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.
*/
name: String
)(input: UndeleteIosAppRequest): F[Operation] = expectJson[Operation](
requestWithBody(method = Method.POST, uri = baseUri / "v1beta1" / s"${name}")(input)
)
def create(
/** The resource name of the parent FirebaseProject in which to create an IosApp, in the format: projects/PROJECT_IDENTIFIER/iosApps Refer to the `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values.
*/
parent: String
)(input: IosApp): F[Operation] = expectJson[Operation](
requestWithBody(method = Method.POST, uri = baseUri / "v1beta1" / s"${parent}" / "iosApps")(
input
)
)
def remove(
/** Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.
*/
name: String
)(input: RemoveIosAppRequest): F[Operation] = expectJson[Operation](
requestWithBody(method = Method.POST, uri = baseUri / "v1beta1" / s"${name}")(input)
)
def get(
/** The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the `IosApp` [`name`](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.
*/
name: String
): F[IosApp] =
expectJson[IosApp](request(method = Method.GET, uri = baseUri / "v1beta1" / s"${name}"))
def patch(
/** The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID
* PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) \*\*\*(recommended)\*\*\* or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`.
* APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)).
*/
name: String,
query: ProjectsIosAppsClient.PatchParams = ProjectsIosAppsClient.PatchParams(),
)(input: IosApp): F[IosApp] = expectJson[IosApp](
requestWithBody(
method = Method.PATCH,
uri = (baseUri / "v1beta1" / s"${name}").copy(query = Query("updateMask" -> query.updateMask)),
)(input)
)
def getConfig(
/** The resource name of the App configuration to download, in the format: projects/PROJECT_IDENTIFIER/iosApps/APP_ID/config Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the `IosApp` [`name`](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.
*/
name: String
): F[IosAppConfig] =
expectJson[IosAppConfig](request(method = Method.GET, uri = baseUri / "v1beta1" / s"${name}"))
def list(
/** The resource name of the parent FirebaseProject for which to list each associated IosApp, in the format: projects/PROJECT_IDENTIFIER/iosApps Refer to the `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values.
*/
parent: String,
query: ProjectsIosAppsClient.ListParams = ProjectsIosAppsClient.ListParams(),
): F[ListIosAppsResponse] = expectJson[ListIosAppsResponse](
request(
method = Method.GET,
uri = (baseUri / "v1beta1" / s"${parent}" / "iosApps").copy(query =
Query(
"pageSize" -> query.pageSize.map(s => QueryParamEncoder[Int].encode(s).value),
"pageToken" -> query.pageToken,
"showDeleted" -> query.showDeleted.map(s => QueryParamEncoder[Boolean].encode(s).value),
)
),
)
)
}
object ProjectsIosAppsClient {
final case class PatchParams(
/** Specifies which fields of the IosApp to update. Note that the following fields are immutable: `name`, `app_id`, `project_id`, and `bundle_id`. To update `state`, use any of the following endpoints: RemoveIosApp or UndeleteIosApp.
*/
updateMask: Option[String] = None
)
final case class ListParams(
/** The maximum number of Apps to return in the response. The server may return fewer than this at its discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.
*/
pageSize: Option[Int] = None,
/** Token returned from a previous call to `ListIosApps` indicating where in the set of Apps to resume listing.
*/
pageToken: Option[String] = None,
/** Controls whether Apps in the DELETED state should be returned in the response. If not specified, only `ACTIVE` Apps will be returned.
*/
showDeleted: Option[Boolean] = None,
)
}