diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex index ea84b3ca52..23cd2e70fc 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex @@ -240,7 +240,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Api.Operations do end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. ## Parameters diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex index a1f3b5051a..d9765c31e1 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1 do API client metadata for GoogleApi.ServiceConsumerManagement.V1. """ - @discovery_revision "20221115" + @discovery_revision "20240310" def discovery_revision(), do: @discovery_revision end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex index 49a8b192fc..82dc225bd4 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/backend_rule.ex @@ -27,6 +27,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule do * `jwtAudience` (*type:* `String.t`, *default:* `nil`) - The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend. * `minDeadline` (*type:* `float()`, *default:* `nil`) - Deprecated, do not use. * `operationDeadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for the completion of a long running operation. The default is no deadline. + * `overridesByRequestProtocol` (*type:* `%{optional(String.t) => GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule.t}`, *default:* `nil`) - The map between request protocol and the backend address. * `pathTranslation` (*type:* `String.t`, *default:* `nil`) - * `protocol` (*type:* `String.t`, *default:* `nil`) - The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. * `selector` (*type:* `String.t`, *default:* `nil`) - Selects the methods to which this rule applies. Refer to selector for syntax details. @@ -41,6 +42,11 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule do :jwtAudience => String.t() | nil, :minDeadline => float() | nil, :operationDeadline => float() | nil, + :overridesByRequestProtocol => + %{ + optional(String.t()) => GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule.t() + } + | nil, :pathTranslation => String.t() | nil, :protocol => String.t() | nil, :selector => String.t() | nil @@ -52,6 +58,12 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule do field(:jwtAudience) field(:minDeadline) field(:operationDeadline) + + field(:overridesByRequestProtocol, + as: GoogleApi.ServiceConsumerManagement.V1.Model.BackendRule, + type: :map + ) + field(:pathTranslation) field(:protocol) field(:selector) diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/client_library_settings.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/client_library_settings.ex index d033a911b0..50bd7559c7 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/client_library_settings.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/client_library_settings.ex @@ -31,7 +31,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.ClientLibrarySettings do * `pythonSettings` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.PythonSettings.t`, *default:* `nil`) - Settings for Python client libraries. * `restNumericEnums` (*type:* `boolean()`, *default:* `nil`) - When using transport=rest, the client request will encode enums as numbers rather than strings. * `rubySettings` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.RubySettings.t`, *default:* `nil`) - Settings for Ruby client libraries. - * `version` (*type:* `String.t`, *default:* `nil`) - Version of the API to apply these settings to. + * `version` (*type:* `String.t`, *default:* `nil`) - Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex index a57e4ad39f..42303d02a9 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/control.ex @@ -22,15 +22,23 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Control do ## Attributes * `environment` (*type:* `String.t`, *default:* `nil`) - The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com + * `methodPolicies` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy.t)`, *default:* `nil`) - Defines policies applying to the API methods of the service. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :environment => String.t() | nil + :environment => String.t() | nil, + :methodPolicies => + list(GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy.t()) | nil } field(:environment) + + field(:methodPolicies, + as: GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy, + type: :list + ) end defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.Control do diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex index 3f1d3b80a3..765b2f9017 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Documentation do @moduledoc """ - `Documentation` provides the information for describing a service. Example: documentation: summary: > The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: > ... - selector: google.calendar.Calendar.Put description: > ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation. + `Documentation` provides the information for describing a service. Example: documentation: summary: > The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: > ... - selector: google.calendar.Calendar.Put description: > ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation. ## Attributes @@ -25,6 +25,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Documentation do * `overview` (*type:* `String.t`, *default:* `nil`) - Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style): documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field. * `pages` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.Page.t)`, *default:* `nil`) - The top level pages for the documentation set. * `rules` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.DocumentationRule.t)`, *default:* `nil`) - A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. + * `sectionOverrides` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.Page.t)`, *default:* `nil`) - Specifies section and content to override boilerplate content provided by go/api-docgen. Currently overrides following sections: 1. rest.service.client_libraries * `serviceRootUrl` (*type:* `String.t`, *default:* `nil`) - Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to. * `summary` (*type:* `String.t`, *default:* `nil`) - A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is equivalent to the standard field `description`. """ @@ -37,6 +38,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Documentation do :pages => list(GoogleApi.ServiceConsumerManagement.V1.Model.Page.t()) | nil, :rules => list(GoogleApi.ServiceConsumerManagement.V1.Model.DocumentationRule.t()) | nil, + :sectionOverrides => list(GoogleApi.ServiceConsumerManagement.V1.Model.Page.t()) | nil, :serviceRootUrl => String.t() | nil, :summary => String.t() | nil } @@ -45,6 +47,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Documentation do field(:overview) field(:pages, as: GoogleApi.ServiceConsumerManagement.V1.Model.Page, type: :list) field(:rules, as: GoogleApi.ServiceConsumerManagement.V1.Model.DocumentationRule, type: :list) + field(:sectionOverrides, as: GoogleApi.ServiceConsumerManagement.V1.Model.Page, type: :list) field(:serviceRootUrl) field(:summary) end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation_rule.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation_rule.ex index 1fd59b82a7..dca3e62cdc 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation_rule.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/documentation_rule.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.DocumentationRule do * `deprecationDescription` (*type:* `String.t`, *default:* `nil`) - Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`. * `description` (*type:* `String.t`, *default:* `nil`) - Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element. + * `disableReplacementWords` (*type:* `String.t`, *default:* `nil`) - String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen. * `selector` (*type:* `String.t`, *default:* `nil`) - The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used. """ @@ -31,11 +32,13 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.DocumentationRule do @type t :: %__MODULE__{ :deprecationDescription => String.t() | nil, :description => String.t() | nil, + :disableReplacementWords => String.t() | nil, :selector => String.t() | nil } field(:deprecationDescription) field(:description) + field(:disableReplacementWords) field(:selector) end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/dotnet_settings.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/dotnet_settings.ex index 1e48ca6b62..fe86325d46 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/dotnet_settings.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/dotnet_settings.ex @@ -22,15 +22,31 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.DotnetSettings do ## Attributes * `common` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + * `forcedNamespaceAliases` (*type:* `list(String.t)`, *default:* `nil`) - Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision + * `handwrittenSignatures` (*type:* `list(String.t)`, *default:* `nil`) - Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however. + * `ignoredResources` (*type:* `list(String.t)`, *default:* `nil`) - List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location" + * `renamedResources` (*type:* `map()`, *default:* `nil`) - Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * `renamedServices` (*type:* `map()`, *default:* `nil`) - Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :common => GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t() | nil + :common => + GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t() | nil, + :forcedNamespaceAliases => list(String.t()) | nil, + :handwrittenSignatures => list(String.t()) | nil, + :ignoredResources => list(String.t()) | nil, + :renamedResources => map() | nil, + :renamedServices => map() | nil } field(:common, as: GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings) + field(:forcedNamespaceAliases, type: :list) + field(:handwrittenSignatures, type: :list) + field(:ignoredResources, type: :list) + field(:renamedResources, type: :map) + field(:renamedServices, type: :map) end defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.DotnetSettings do diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/enum.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/enum.ex index f6072bb1a5..e837ead513 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/enum.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/enum.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Enum do ## Attributes + * `edition` (*type:* `String.t`, *default:* `nil`) - The source edition string, only valid when syntax is SYNTAX_EDITIONS. * `enumvalue` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.EnumValue.t)`, *default:* `nil`) - Enum value definitions. * `name` (*type:* `String.t`, *default:* `nil`) - Enum type name. * `options` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.Option.t)`, *default:* `nil`) - Protocol buffer options. @@ -31,6 +32,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Enum do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :edition => String.t() | nil, :enumvalue => list(GoogleApi.ServiceConsumerManagement.V1.Model.EnumValue.t()) | nil, :name => String.t() | nil, :options => list(GoogleApi.ServiceConsumerManagement.V1.Model.Option.t()) | nil, @@ -38,6 +40,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Enum do :syntax => String.t() | nil } + field(:edition) field(:enumvalue, as: GoogleApi.ServiceConsumerManagement.V1.Model.EnumValue, type: :list) field(:name) field(:options, as: GoogleApi.ServiceConsumerManagement.V1.Model.Option, type: :list) diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/field_policy.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/field_policy.ex new file mode 100644 index 0000000000..b133e4fe0a --- /dev/null +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/field_policy.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy do + @moduledoc """ + Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation. + + ## Attributes + + * `resourcePermission` (*type:* `String.t`, *default:* `nil`) - Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission checks to proceed. For example, "resourcemanager.projects.get". + * `resourceType` (*type:* `String.t`, *default:* `nil`) - Specifies the resource type for the resource referred to by the field. + * `selector` (*type:* `String.t`, *default:* `nil`) - Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or response field paths, such as "foo.bar" or "foo.bar,foo.baz". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resourcePermission => String.t() | nil, + :resourceType => String.t() | nil, + :selector => String.t() | nil + } + + field(:resourcePermission) + field(:resourceType) + field(:selector) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy do + def decode(value, options) do + GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_policy.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_policy.ex new file mode 100644 index 0000000000..70f606064d --- /dev/null +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_policy.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy do + @moduledoc """ + Defines policies applying to an RPC method. + + ## Attributes + + * `requestPolicies` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy.t)`, *default:* `nil`) - Policies that are applicable to the request message. + * `selector` (*type:* `String.t`, *default:* `nil`) - Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler . + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requestPolicies => + list(GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy.t()) | nil, + :selector => String.t() | nil + } + + field(:requestPolicies, + as: GoogleApi.ServiceConsumerManagement.V1.Model.FieldPolicy, + type: :list + ) + + field(:selector) +end + +defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy do + def decode(value, options) do + GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.MethodPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_settings.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_settings.ex index 2d7817de7c..cfaab3d7fd 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_settings.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/method_settings.ex @@ -21,17 +21,20 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.MethodSettings do ## Attributes - * `longRunning` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.LongRunning.t`, *default:* `nil`) - Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes + * `autoPopulatedFields` (*type:* `list(String.t)`, *default:* `nil`) - List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id + * `longRunning` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.LongRunning.t`, *default:* `nil`) - Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes * `selector` (*type:* `String.t`, *default:* `nil`) - The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :autoPopulatedFields => list(String.t()) | nil, :longRunning => GoogleApi.ServiceConsumerManagement.V1.Model.LongRunning.t() | nil, :selector => String.t() | nil } + field(:autoPopulatedFields, type: :list) field(:longRunning, as: GoogleApi.ServiceConsumerManagement.V1.Model.LongRunning) field(:selector) end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex index 4c4e504cd1..67d47e6415 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/mixin.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Mixin do @moduledoc """ - Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**}:getAcl"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**}"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; } ... } + Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**}:getAcl"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**}"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; } ... } ## Attributes diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitored_resource_descriptor.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitored_resource_descriptor.ex index 8d583537c0..9de636af6b 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitored_resource_descriptor.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/monitored_resource_descriptor.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.MonitoredResourceDescript * `labels` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.LabelDescriptor.t)`, *default:* `nil`) - Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `"database_id"` and `"zone"`. * `launchStage` (*type:* `String.t`, *default:* `nil`) - Optional. The launch stage of the monitored resource definition. * `name` (*type:* `String.t`, *default:* `nil`) - Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `"monitoredResourceDescriptors/{type}"`. - * `type` (*type:* `String.t`, *default:* `nil`) - Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitored resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list). """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/operation.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/operation.ex index 9f2dcaaa34..9530c9b859 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/operation.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Operation do * `error` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/publishing.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/publishing.ex index e2b5cdd4a7..c3f1693448 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/publishing.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/publishing.ex @@ -28,8 +28,10 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Publishing do * `githubLabel` (*type:* `String.t`, *default:* `nil`) - GitHub label to apply to issues and pull requests opened for this API. * `librarySettings` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.ClientLibrarySettings.t)`, *default:* `nil`) - Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded. * `methodSettings` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.MethodSettings.t)`, *default:* `nil`) - A list of API method settings, e.g. the behavior for methods that use the long-running operation pattern. - * `newIssueUri` (*type:* `String.t`, *default:* `nil`) - Link to a place that API users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * `newIssueUri` (*type:* `String.t`, *default:* `nil`) - Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 * `organization` (*type:* `String.t`, *default:* `nil`) - For whom the client library is being published. + * `protoReferenceDocumentationUri` (*type:* `String.t`, *default:* `nil`) - Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc + * `restReferenceDocumentationUri` (*type:* `String.t`, *default:* `nil`) - Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest """ use GoogleApi.Gax.ModelBase @@ -45,7 +47,9 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Publishing do :methodSettings => list(GoogleApi.ServiceConsumerManagement.V1.Model.MethodSettings.t()) | nil, :newIssueUri => String.t() | nil, - :organization => String.t() | nil + :organization => String.t() | nil, + :protoReferenceDocumentationUri => String.t() | nil, + :restReferenceDocumentationUri => String.t() | nil } field(:apiShortName) @@ -66,6 +70,8 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Publishing do field(:newIssueUri) field(:organization) + field(:protoReferenceDocumentationUri) + field(:restReferenceDocumentationUri) end defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.Publishing do diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/type.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/type.ex index 6300b6872e..8793d7fb75 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/type.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/type.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Type do ## Attributes + * `edition` (*type:* `String.t`, *default:* `nil`) - The source edition string, only valid when syntax is SYNTAX_EDITIONS. * `fields` (*type:* `list(GoogleApi.ServiceConsumerManagement.V1.Model.Field.t)`, *default:* `nil`) - The list of fields. * `name` (*type:* `String.t`, *default:* `nil`) - The fully qualified message name. * `oneofs` (*type:* `list(String.t)`, *default:* `nil`) - The list of types appearing in `oneof` definitions in this type. @@ -32,6 +33,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Type do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :edition => String.t() | nil, :fields => list(GoogleApi.ServiceConsumerManagement.V1.Model.Field.t()) | nil, :name => String.t() | nil, :oneofs => list(String.t()) | nil, @@ -40,6 +42,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.Type do :syntax => String.t() | nil } + field(:edition) field(:fields, as: GoogleApi.ServiceConsumerManagement.V1.Model.Field, type: :list) field(:name) field(:oneofs, type: :list) diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_producer_quota_policy.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_producer_quota_policy.ex index 1d4e16893a..77d39bdf33 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_producer_quota_policy.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_beta1_producer_quota_policy.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.V1Beta1ProducerQuotaPolic ## Attributes * `container` (*type:* `String.t`, *default:* `nil`) - The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number} - * `dimensions` (*type:* `map()`, *default:* `nil`) - If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project}/{region} could contain an entry with the key "region" and the value "us-east-1"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * "project" is not a valid key; the project is already specified in the parent resource name. * "user" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If "region" appears as a key, its value must be a valid Cloud region. * If "zone" appears as a key, its value must be a valid Cloud zone. * If any valid key other than "region" or "zone" appears in the map, then all valid keys other than "region" or "zone" must also appear in the map. + * `dimensions` (*type:* `map()`, *default:* `nil`) - If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit 1/{project}/{region} could contain an entry with the key "region" and the value "us-east-1"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * "project" is not a valid key; the project is already specified in the parent resource name. * "user" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If "region" appears as a key, its value must be a valid Cloud region. * If "zone" appears as a key, its value must be a valid Cloud zone. * If any valid key other than "region" or "zone" appears in the map, then all valid keys other than "region" or "zone" must also appear in the map. * `metric` (*type:* `String.t`, *default:* `nil`) - The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus` * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the producer policy. An example name would be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d` * `policyValue` (*type:* `String.t`, *default:* `nil`) - The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).