From e0408e52c5c2194d11072db51beca9fb6ce311b5 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:48:16 -0700 Subject: [PATCH] feat: Automated regeneration of DNS client (#10943) Auto-created at 2024-03-12 02:35:43 +0000 using the toys pull request generator. --- clients/dns/lib/google_api/dns/v1/metadata.ex | 2 +- .../dns/v1/model/google_iam_v1_binding.ex | 4 ++-- .../dns/v1/model/google_iam_v1_policy.ex | 2 +- clients/dns/lib/google_api/dns/v1/model/quota.ex | 3 +++ .../dns/v1/model/resource_record_set.ex | 2 +- .../model/resource_record_sets_list_response.ex | 2 +- .../dns/v1/model/rr_set_routing_policy.ex | 3 +++ .../v1/model/rr_set_routing_policy_geo_policy.ex | 2 +- ..._routing_policy_geo_policy_geo_policy_item.ex | 2 +- ...rr_set_routing_policy_health_check_targets.ex | 8 ++++++-- ...rr_set_routing_policy_load_balancer_target.ex | 16 ++++++++-------- ...r_set_routing_policy_primary_backup_policy.ex | 2 +- ..._routing_policy_wrr_policy_wrr_policy_item.ex | 6 +++--- 13 files changed, 32 insertions(+), 22 deletions(-) diff --git a/clients/dns/lib/google_api/dns/v1/metadata.ex b/clients/dns/lib/google_api/dns/v1/metadata.ex index 1bb0d295d2..7179306b1d 100644 --- a/clients/dns/lib/google_api/dns/v1/metadata.ex +++ b/clients/dns/lib/google_api/dns/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.DNS.V1 do API client metadata for GoogleApi.DNS.V1. """ - @discovery_revision "20221110" + @discovery_revision "20240222" def discovery_revision(), do: @discovery_revision end diff --git a/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_binding.ex b/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_binding.ex index 9095efa35c..d086a8d7a9 100644 --- a/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_binding.ex +++ b/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.DNS.V1.Model.GoogleIamV1Binding do ## Attributes * `condition` (*type:* `GoogleApi.DNS.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_policy.ex b/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_policy.ex index 8096fe9cb8..a28ea51216 100644 --- a/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_policy.ex +++ b/clients/dns/lib/google_api/dns/v1/model/google_iam_v1_policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.DNS.V1.Model.GoogleIamV1Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/dns/lib/google_api/dns/v1/model/quota.ex b/clients/dns/lib/google_api/dns/v1/model/quota.ex index ebb20c0550..77e7f1c2d1 100644 --- a/clients/dns/lib/google_api/dns/v1/model/quota.ex +++ b/clients/dns/lib/google_api/dns/v1/model/quota.ex @@ -30,6 +30,7 @@ defmodule GoogleApi.DNS.V1.Model.Quota do * `managedZones` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of managed zones in the project. * `managedZonesPerGkeCluster` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of managed zones which can be attached to a GKE cluster. * `managedZonesPerNetwork` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of managed zones which can be attached to a network. + * `nameserversPerDelegation` (*type:* `integer()`, *default:* `nil`) - Maximum number of nameservers per delegation, meant to prevent abuse * `networksPerManagedZone` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of networks to which a privately scoped zone can be attached. * `networksPerPolicy` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of networks per policy. * `networksPerResponsePolicy` (*type:* `integer()`, *default:* `nil`) - Maximum allowed number of networks per response policy. @@ -59,6 +60,7 @@ defmodule GoogleApi.DNS.V1.Model.Quota do :managedZones => integer() | nil, :managedZonesPerGkeCluster => integer() | nil, :managedZonesPerNetwork => integer() | nil, + :nameserversPerDelegation => integer() | nil, :networksPerManagedZone => integer() | nil, :networksPerPolicy => integer() | nil, :networksPerResponsePolicy => integer() | nil, @@ -85,6 +87,7 @@ defmodule GoogleApi.DNS.V1.Model.Quota do field(:managedZones) field(:managedZonesPerGkeCluster) field(:managedZonesPerNetwork) + field(:nameserversPerDelegation) field(:networksPerManagedZone) field(:networksPerPolicy) field(:networksPerResponsePolicy) diff --git a/clients/dns/lib/google_api/dns/v1/model/resource_record_set.ex b/clients/dns/lib/google_api/dns/v1/model/resource_record_set.ex index 8ddb718123..0c1f7836a5 100644 --- a/clients/dns/lib/google_api/dns/v1/model/resource_record_set.ex +++ b/clients/dns/lib/google_api/dns/v1/model/resource_record_set.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.DNS.V1.Model.ResourceRecordSet do * `kind` (*type:* `String.t`, *default:* `dns#resourceRecordSet`) - * `name` (*type:* `String.t`, *default:* `nil`) - For example, www.example.com. - * `routingPolicy` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicy.t`, *default:* `nil`) - Configures dynamic query responses based on geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise. + * `routingPolicy` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicy.t`, *default:* `nil`) - Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid ResourceRecordSet contains only rrdata (for static resolution) or a routing_policy (for dynamic resolution). * `rrdatas` (*type:* `list(String.t)`, *default:* `nil`) - As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. * `signatureRrdatas` (*type:* `list(String.t)`, *default:* `nil`) - As defined in RFC 4034 (section 3.2). * `ttl` (*type:* `integer()`, *default:* `nil`) - Number of seconds that this ResourceRecordSet can be cached by resolvers. diff --git a/clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex b/clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex index fda9c68772..fbd9434c95 100644 --- a/clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex +++ b/clients/dns/lib/google_api/dns/v1/model/resource_record_sets_list_response.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.DNS.V1.Model.ResourceRecordSetsListResponse do * `header` (*type:* `GoogleApi.DNS.V1.Model.ResponseHeader.t`, *default:* `nil`) - * `kind` (*type:* `String.t`, *default:* `dns#resourceRecordSetsListResponse`) - Type of resource. - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. This lets you retrieve complete contents of even larger collections, one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. This lets you retrieve the complete contents of even larger collections, one page at a time. However, if the collection changes between paginated list requests, the set of elements returned is an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size. * `rrsets` (*type:* `list(GoogleApi.DNS.V1.Model.ResourceRecordSet.t)`, *default:* `nil`) - The resource record set resources. """ diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy.ex index ec0fb947b3..37f1e6ce4f 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicy do ## Attributes * `geo` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicy.t`, *default:* `nil`) - + * `healthCheck` (*type:* `String.t`, *default:* `nil`) - The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicy`) - * `primaryBackup` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyPrimaryBackupPolicy.t`, *default:* `nil`) - * `wrr` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyWrrPolicy.t`, *default:* `nil`) - @@ -31,6 +32,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicy do @type t :: %__MODULE__{ :geo => GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicy.t() | nil, + :healthCheck => String.t() | nil, :kind => String.t() | nil, :primaryBackup => GoogleApi.DNS.V1.Model.RRSetRoutingPolicyPrimaryBackupPolicy.t() | nil, @@ -38,6 +40,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicy do } field(:geo, as: GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicy) + field(:healthCheck) field(:kind) field(:primaryBackup, as: GoogleApi.DNS.V1.Model.RRSetRoutingPolicyPrimaryBackupPolicy) field(:wrr, as: GoogleApi.DNS.V1.Model.RRSetRoutingPolicyWrrPolicy) diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy.ex index f5e654eb9d..8e47fe8dd5 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicy do ## Attributes - * `enableFencing` (*type:* `boolean()`, *default:* `nil`) - Without fencing, if health check fails for all configured items in the current geo bucket, we'll failover to the next nearest geo bucket. With fencing, if health check is enabled, as long as some targets in the current geo bucket are healthy, we'll return only the healthy targets. However, if they're all unhealthy, we won't failover to the next nearest bucket, we'll simply return all the items in the current bucket even though they're unhealthy. + * `enableFencing` (*type:* `boolean()`, *default:* `nil`) - Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. * `items` (*type:* `list(GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicyGeoPolicyItem.t)`, *default:* `nil`) - The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicyGeoPolicy`) - """ diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy_geo_policy_item.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy_geo_policy_item.ex index 3a7f9499e3..ef06c77dd0 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy_geo_policy_item.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_geo_policy_geo_policy_item.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicyGeoPolicyItem do * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem`) - * `location` (*type:* `String.t`, *default:* `nil`) - The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1", etc. * `rrdatas` (*type:* `list(String.t)`, *default:* `nil`) - - * `signatureRrdatas` (*type:* `list(String.t)`, *default:* `nil`) - DNSSEC generated signatures for all the rrdata within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 ip per item. . + * `signatureRrdatas` (*type:* `list(String.t)`, *default:* `nil`) - DNSSEC generated signatures for all the rrdata within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_health_check_targets.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_health_check_targets.ex index c056ca1934..9b10274d9a 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_health_check_targets.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_health_check_targets.ex @@ -17,20 +17,24 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyHealthCheckTargets do @moduledoc """ - HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. + HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Only one of internal_load_balancer and external_endpoints should be set. ## Attributes - * `internalLoadBalancers` (*type:* `list(GoogleApi.DNS.V1.Model.RRSetRoutingPolicyLoadBalancerTarget.t)`, *default:* `nil`) - + * `externalEndpoints` (*type:* `list(String.t)`, *default:* `nil`) - The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) + * `internalLoadBalancers` (*type:* `list(GoogleApi.DNS.V1.Model.RRSetRoutingPolicyLoadBalancerTarget.t)`, *default:* `nil`) - Configuration for internal load balancers to be health checked. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :externalEndpoints => list(String.t()) | nil, :internalLoadBalancers => list(GoogleApi.DNS.V1.Model.RRSetRoutingPolicyLoadBalancerTarget.t()) | nil } + field(:externalEndpoints, type: :list) + field(:internalLoadBalancers, as: GoogleApi.DNS.V1.Model.RRSetRoutingPolicyLoadBalancerTarget, type: :list diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_load_balancer_target.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_load_balancer_target.ex index d012683c30..f1fc1cea98 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_load_balancer_target.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_load_balancer_target.ex @@ -17,18 +17,18 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyLoadBalancerTarget do @moduledoc """ - + The configuration for an individual load balancer to health check. ## Attributes - * `ipAddress` (*type:* `String.t`, *default:* `nil`) - The frontend IP address of the - * `ipProtocol` (*type:* `String.t`, *default:* `nil`) - + * `ipAddress` (*type:* `String.t`, *default:* `nil`) - The frontend IP address of the load balancer to health check. + * `ipProtocol` (*type:* `String.t`, *default:* `nil`) - The protocol of the load balancer to health check. * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicyLoadBalancerTarget`) - - * `loadBalancerType` (*type:* `String.t`, *default:* `nil`) - - * `networkUrl` (*type:* `String.t`, *default:* `nil`) - The fully qualified url of the network on which the ILB is - * `port` (*type:* `String.t`, *default:* `nil`) - Load Balancer to health check. The configured port of the Load Balancer. - * `project` (*type:* `String.t`, *default:* `nil`) - present. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} The project ID in which the ILB exists. - * `region` (*type:* `String.t`, *default:* `nil`) - The region for regional ILBs. + * `loadBalancerType` (*type:* `String.t`, *default:* `nil`) - The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. + * `networkUrl` (*type:* `String.t`, *default:* `nil`) - The fully qualified URL of the network that the load balancer is attached to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} . + * `port` (*type:* `String.t`, *default:* `nil`) - The configured port of the load balancer. + * `project` (*type:* `String.t`, *default:* `nil`) - The project ID in which the load balancer is located. + * `region` (*type:* `String.t`, *default:* `nil`) - The region in which the load balancer is located. """ use GoogleApi.Gax.ModelBase diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_primary_backup_policy.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_primary_backup_policy.ex index d77cf68214..db73959ed7 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_primary_backup_policy.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_primary_backup_policy.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyPrimaryBackupPolicy do * `backupGeoTargets` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyGeoPolicy.t`, *default:* `nil`) - Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to BACKUP, this policy essentially becomes a geo routing policy. * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicyPrimaryBackupPolicy`) - - * `primaryTargets` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyHealthCheckTargets.t`, *default:* `nil`) - + * `primaryTargets` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyHealthCheckTargets.t`, *default:* `nil`) - Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the backup_geo_targets. * `trickleTraffic` (*type:* `float()`, *default:* `nil`) - When serving state is PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets. """ diff --git a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_wrr_policy_wrr_policy_item.ex b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_wrr_policy_wrr_policy_item.ex index 1988ca040c..e30e9b54c9 100644 --- a/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_wrr_policy_wrr_policy_item.ex +++ b/clients/dns/lib/google_api/dns/v1/model/rr_set_routing_policy_wrr_policy_wrr_policy_item.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.DNS.V1.Model.RRSetRoutingPolicyWrrPolicyWrrPolicyItem do ## Attributes - * `healthCheckedTargets` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyHealthCheckTargets.t`, *default:* `nil`) - endpoints that need to be health checked before making the routing decision. The unhealthy endpoints will be omitted from the result. If all endpoints within a buckete are unhealthy, we'll choose a different bucket (sampled w.r.t. its weight) for responding. Note that if DNSSEC is enabled for this zone, only one of rrdata or health_checked_targets can be set. + * `healthCheckedTargets` (*type:* `GoogleApi.DNS.V1.Model.RRSetRoutingPolicyHealthCheckTargets.t`, *default:* `nil`) - Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of rrdata or health_checked_targets can be set. * `kind` (*type:* `String.t`, *default:* `dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem`) - * `rrdatas` (*type:* `list(String.t)`, *default:* `nil`) - - * `signatureRrdatas` (*type:* `list(String.t)`, *default:* `nil`) - DNSSEC generated signatures for all the rrdata within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 ip per item. . - * `weight` (*type:* `float()`, *default:* `nil`) - The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative. + * `signatureRrdatas` (*type:* `list(String.t)`, *default:* `nil`) - DNSSEC generated signatures for all the rrdata within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. + * `weight` (*type:* `float()`, *default:* `nil`) - The weight corresponding to this WrrPolicyItem object. When multiple WrrPolicyItem objects are configured, the probability of returning an WrrPolicyItem object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. """ use GoogleApi.Gax.ModelBase