diff --git a/api_names_out.yaml b/api_names_out.yaml index 97c329f1a..644242280 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -62142,6 +62142,7 @@ "/dns:v1beta2/ManagedZone/description": description "/dns:v1beta2/ManagedZone/dnsName": dns_name "/dns:v1beta2/ManagedZone/dnssecConfig": dnssec_config +"/dns:v1beta2/ManagedZone/forwardingConfig": forwarding_config "/dns:v1beta2/ManagedZone/id": id "/dns:v1beta2/ManagedZone/kind": kind "/dns:v1beta2/ManagedZone/labels": labels @@ -62158,6 +62159,13 @@ "/dns:v1beta2/ManagedZoneDnsSecConfig/kind": kind "/dns:v1beta2/ManagedZoneDnsSecConfig/nonExistence": non_existence "/dns:v1beta2/ManagedZoneDnsSecConfig/state": state +"/dns:v1beta2/ManagedZoneForwardingConfig": managed_zone_forwarding_config +"/dns:v1beta2/ManagedZoneForwardingConfig/kind": kind +"/dns:v1beta2/ManagedZoneForwardingConfig/targetNameServers": target_name_servers +"/dns:v1beta2/ManagedZoneForwardingConfig/targetNameServers/target_name_server": target_name_server +"/dns:v1beta2/ManagedZoneForwardingConfigNameServerTarget": managed_zone_forwarding_config_name_server_target +"/dns:v1beta2/ManagedZoneForwardingConfigNameServerTarget/ipv4Address": ipv4_address +"/dns:v1beta2/ManagedZoneForwardingConfigNameServerTarget/kind": kind "/dns:v1beta2/ManagedZoneOperationsListResponse": managed_zone_operations_list_response "/dns:v1beta2/ManagedZoneOperationsListResponse/header": header "/dns:v1beta2/ManagedZoneOperationsListResponse/kind": kind @@ -62194,6 +62202,37 @@ "/dns:v1beta2/OperationManagedZoneContext": operation_managed_zone_context "/dns:v1beta2/OperationManagedZoneContext/newValue": new_value "/dns:v1beta2/OperationManagedZoneContext/oldValue": old_value +"/dns:v1beta2/PoliciesListResponse": policies_list_response +"/dns:v1beta2/PoliciesListResponse/header": header +"/dns:v1beta2/PoliciesListResponse/kind": kind +"/dns:v1beta2/PoliciesListResponse/nextPageToken": next_page_token +"/dns:v1beta2/PoliciesListResponse/policies": policies +"/dns:v1beta2/PoliciesListResponse/policies/policy": policy +"/dns:v1beta2/PoliciesPatchResponse": policies_patch_response +"/dns:v1beta2/PoliciesPatchResponse/header": header +"/dns:v1beta2/PoliciesPatchResponse/policy": policy +"/dns:v1beta2/PoliciesUpdateResponse": policies_update_response +"/dns:v1beta2/PoliciesUpdateResponse/header": header +"/dns:v1beta2/PoliciesUpdateResponse/policy": policy +"/dns:v1beta2/Policy": policy +"/dns:v1beta2/Policy/alternativeNameServerConfig": alternative_name_server_config +"/dns:v1beta2/Policy/description": description +"/dns:v1beta2/Policy/enableInboundForwarding": enable_inbound_forwarding +"/dns:v1beta2/Policy/id": id +"/dns:v1beta2/Policy/kind": kind +"/dns:v1beta2/Policy/name": name +"/dns:v1beta2/Policy/networks": networks +"/dns:v1beta2/Policy/networks/network": network +"/dns:v1beta2/PolicyAlternativeNameServerConfig": policy_alternative_name_server_config +"/dns:v1beta2/PolicyAlternativeNameServerConfig/kind": kind +"/dns:v1beta2/PolicyAlternativeNameServerConfig/targetNameServers": target_name_servers +"/dns:v1beta2/PolicyAlternativeNameServerConfig/targetNameServers/target_name_server": target_name_server +"/dns:v1beta2/PolicyAlternativeNameServerConfigTargetNameServer": policy_alternative_name_server_config_target_name_server +"/dns:v1beta2/PolicyAlternativeNameServerConfigTargetNameServer/ipv4Address": ipv4_address +"/dns:v1beta2/PolicyAlternativeNameServerConfigTargetNameServer/kind": kind +"/dns:v1beta2/PolicyNetwork": policy_network +"/dns:v1beta2/PolicyNetwork/kind": kind +"/dns:v1beta2/PolicyNetwork/networkUrl": network_url "/dns:v1beta2/Project": project "/dns:v1beta2/Project/id": id "/dns:v1beta2/Project/kind": kind @@ -62206,10 +62245,14 @@ "/dns:v1beta2/Quota/managedZones": managed_zones "/dns:v1beta2/Quota/managedZonesPerNetwork": managed_zones_per_network "/dns:v1beta2/Quota/networksPerManagedZone": networks_per_managed_zone +"/dns:v1beta2/Quota/networksPerPolicy": networks_per_policy +"/dns:v1beta2/Quota/policies": policies "/dns:v1beta2/Quota/resourceRecordsPerRrset": resource_records_per_rrset "/dns:v1beta2/Quota/rrsetAdditionsPerChange": rrset_additions_per_change "/dns:v1beta2/Quota/rrsetDeletionsPerChange": rrset_deletions_per_change "/dns:v1beta2/Quota/rrsetsPerManagedZone": rrsets_per_managed_zone +"/dns:v1beta2/Quota/targetNameServersPerManagedZone": target_name_servers_per_managed_zone +"/dns:v1beta2/Quota/targetNameServersPerPolicy": target_name_servers_per_policy "/dns:v1beta2/Quota/totalRrdataSizePerChange": total_rrdata_size_per_change "/dns:v1beta2/Quota/whitelistedKeySpecs": whitelisted_key_specs "/dns:v1beta2/Quota/whitelistedKeySpecs/whitelisted_key_spec": whitelisted_key_spec @@ -62293,6 +62336,29 @@ "/dns:v1beta2/dns.managedZones.update/clientOperationId": client_operation_id "/dns:v1beta2/dns.managedZones.update/managedZone": managed_zone "/dns:v1beta2/dns.managedZones.update/project": project +"/dns:v1beta2/dns.policies.create": create_policy +"/dns:v1beta2/dns.policies.create/clientOperationId": client_operation_id +"/dns:v1beta2/dns.policies.create/project": project +"/dns:v1beta2/dns.policies.delete": delete_policy +"/dns:v1beta2/dns.policies.delete/clientOperationId": client_operation_id +"/dns:v1beta2/dns.policies.delete/policy": policy +"/dns:v1beta2/dns.policies.delete/project": project +"/dns:v1beta2/dns.policies.get": get_policy +"/dns:v1beta2/dns.policies.get/clientOperationId": client_operation_id +"/dns:v1beta2/dns.policies.get/policy": policy +"/dns:v1beta2/dns.policies.get/project": project +"/dns:v1beta2/dns.policies.list": list_policies +"/dns:v1beta2/dns.policies.list/maxResults": max_results +"/dns:v1beta2/dns.policies.list/pageToken": page_token +"/dns:v1beta2/dns.policies.list/project": project +"/dns:v1beta2/dns.policies.patch": patch_policy +"/dns:v1beta2/dns.policies.patch/clientOperationId": client_operation_id +"/dns:v1beta2/dns.policies.patch/policy": policy +"/dns:v1beta2/dns.policies.patch/project": project +"/dns:v1beta2/dns.policies.update": update_policy +"/dns:v1beta2/dns.policies.update/clientOperationId": client_operation_id +"/dns:v1beta2/dns.policies.update/policy": policy +"/dns:v1beta2/dns.policies.update/project": project "/dns:v1beta2/dns.projects.get": get_project "/dns:v1beta2/dns.projects.get/clientOperationId": client_operation_id "/dns:v1beta2/dns.projects.get/project": project @@ -64614,6 +64680,8 @@ "/firebasehosting:v1beta1/ServingConfig/rewrites": rewrites "/firebasehosting:v1beta1/ServingConfig/rewrites/rewrite": rewrite "/firebasehosting:v1beta1/ServingConfig/trailingSlashBehavior": trailing_slash_behavior +"/firebasehosting:v1beta1/SiteConfig": site_config +"/firebasehosting:v1beta1/SiteConfig/maxVersions": max_versions "/firebasehosting:v1beta1/Version": version "/firebasehosting:v1beta1/Version/config": config "/firebasehosting:v1beta1/Version/createTime": create_time @@ -64645,6 +64713,8 @@ "/firebasehosting:v1beta1/firebasehosting.sites.domains.list/parent": parent "/firebasehosting:v1beta1/firebasehosting.sites.domains.update": update_site_domain "/firebasehosting:v1beta1/firebasehosting.sites.domains.update/name": name +"/firebasehosting:v1beta1/firebasehosting.sites.getConfig": get_site_config +"/firebasehosting:v1beta1/firebasehosting.sites.getConfig/name": name "/firebasehosting:v1beta1/firebasehosting.sites.releases.create": create_site_release "/firebasehosting:v1beta1/firebasehosting.sites.releases.create/parent": parent "/firebasehosting:v1beta1/firebasehosting.sites.releases.create/versionName": version_name @@ -64652,6 +64722,9 @@ "/firebasehosting:v1beta1/firebasehosting.sites.releases.list/pageSize": page_size "/firebasehosting:v1beta1/firebasehosting.sites.releases.list/pageToken": page_token "/firebasehosting:v1beta1/firebasehosting.sites.releases.list/parent": parent +"/firebasehosting:v1beta1/firebasehosting.sites.updateConfig": update_site_config +"/firebasehosting:v1beta1/firebasehosting.sites.updateConfig/name": name +"/firebasehosting:v1beta1/firebasehosting.sites.updateConfig/updateMask": update_mask "/firebasehosting:v1beta1/firebasehosting.sites.versions.create": create_site_version "/firebasehosting:v1beta1/firebasehosting.sites.versions.create/parent": parent "/firebasehosting:v1beta1/firebasehosting.sites.versions.create/sizeBytes": size_bytes @@ -80994,6 +81067,7 @@ "/servicenetworking:v1beta/Connection/peering": peering "/servicenetworking:v1beta/Connection/reservedPeeringRanges": reserved_peering_ranges "/servicenetworking:v1beta/Connection/reservedPeeringRanges/reserved_peering_range": reserved_peering_range +"/servicenetworking:v1beta/Connection/service": service "/servicenetworking:v1beta/Context": context "/servicenetworking:v1beta/Context/rules": rules "/servicenetworking:v1beta/Context/rules/rule": rule @@ -81284,6 +81358,10 @@ "/servicenetworking:v1beta/servicenetworking.services.connections.list": list_service_connections "/servicenetworking:v1beta/servicenetworking.services.connections.list/network": network "/servicenetworking:v1beta/servicenetworking.services.connections.list/parent": parent +"/servicenetworking:v1beta/servicenetworking.services.patch": patch_service +"/servicenetworking:v1beta/servicenetworking.services.patch/force": force +"/servicenetworking:v1beta/servicenetworking.services.patch/name": name +"/servicenetworking:v1beta/servicenetworking.services.patch/updateMask": update_mask "/serviceusage:v1/Api": api "/serviceusage:v1/Api/methods": methods_prop "/serviceusage:v1/Api/methods/methods_prop": methods_prop @@ -85909,6 +85987,10 @@ "/storage:v1/Bucket/encryption": encryption "/storage:v1/Bucket/encryption/defaultKmsKeyName": default_kms_key_name "/storage:v1/Bucket/etag": etag +"/storage:v1/Bucket/iamConfiguration": iam_configuration +"/storage:v1/Bucket/iamConfiguration/bucketPolicyOnly": bucket_policy_only +"/storage:v1/Bucket/iamConfiguration/bucketPolicyOnly/enabled": enabled +"/storage:v1/Bucket/iamConfiguration/bucketPolicyOnly/lockedTime": locked_time "/storage:v1/Bucket/id": id "/storage:v1/Bucket/kind": kind "/storage:v1/Bucket/labels": labels diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index 440e09d11..5c5276d79 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1 VERSION = 'V1' - REVISION = '20181020' + REVISION = '20181113' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/clouddebugger_v2.rb b/generated/google/apis/clouddebugger_v2.rb index afab77a53..aa81530b2 100644 --- a/generated/google/apis/clouddebugger_v2.rb +++ b/generated/google/apis/clouddebugger_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/debugger module ClouddebuggerV2 VERSION = 'V2' - REVISION = '20180801' + REVISION = '20181114' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/clouddebugger_v2/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index 681195f04..07335c813 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -361,10 +361,10 @@ module Google # @return [Google::Apis::ClouddebuggerV2::StatusMessage] attr_accessor :status - # Uniquifier to further distiguish the application. + # Uniquifier to further distinguish the application. # It is possible that different applications might have identical values in # the debuggee message, thus, incorrectly identified as a single application - # by the Controller service. This field adds salt to further distiguish the + # by the Controller service. This field adds salt to further distinguish the # application. Agents should consider seeding this field with value that # identifies the code, binary, configuration and environment. # Corresponds to the JSON property `uniquifier` diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index 0546f2277..60e7ac840 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1beta2 VERSION = 'V1beta2' - REVISION = '20181015' + REVISION = '20181115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb index c0e6cf6a8..a20fea037 100644 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ b/generated/google/apis/dns_v1beta2/classes.rb @@ -361,6 +361,13 @@ module Google # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig] attr_accessor :dnssec_config + # The presence for this field indicates that outbound forwarding is enabled for + # this zone. The value of this field contains the set of destinations to forward + # to. + # Corresponds to the JSON property `forwardingConfig` + # @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig] + attr_accessor :forwarding_config + # Unique identifier for the resource; defined by the server (output only) # Corresponds to the JSON property `id` # @return [Fixnum] @@ -419,6 +426,7 @@ module Google @description = args[:description] if args.key?(:description) @dns_name = args[:dns_name] if args.key?(:dns_name) @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config) + @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @@ -470,6 +478,59 @@ module Google end end + # + class ManagedZoneForwardingConfig + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneForwardingConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # List of target name servers to forward to. Cloud DNS will select the best + # available name server if more than one target is given. + # Corresponds to the JSON property `targetNameServers` + # @return [Array] + attr_accessor :target_name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) + end + end + + # + class ManagedZoneForwardingConfigNameServerTarget + include Google::Apis::Core::Hashable + + # IPv4 address of a target name server. + # Corresponds to the JSON property `ipv4Address` + # @return [String] + attr_accessor :ipv4_address + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneForwardingConfigNameServerTarget". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) + @kind = args[:kind] if args.key?(:kind) + end + end + # class ManagedZoneOperationsListResponse include Google::Apis::Core::Hashable @@ -740,6 +801,247 @@ module Google end end + # + class PoliciesListResponse + include Google::Apis::Core::Hashable + + # Elements common to every response. + # Corresponds to the JSON property `header` + # @return [Google::Apis::DnsV1beta2::ResponseHeader] + attr_accessor :header + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # 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 page token. + # In this way you can retrieve the complete contents of even very large + # 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 all + # elements returned will be an inconsistent view of the collection. There is no + # way to retrieve a consistent snapshot of a collection larger than the maximum + # page size. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The policy resources. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header = args[:header] if args.key?(:header) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @policies = args[:policies] if args.key?(:policies) + end + end + + # + class PoliciesPatchResponse + include Google::Apis::Core::Hashable + + # Elements common to every response. + # Corresponds to the JSON property `header` + # @return [Google::Apis::DnsV1beta2::ResponseHeader] + attr_accessor :header + + # A policy is a collection of rules applied to one or more networks that specify + # forwarding behavior for that network. + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DnsV1beta2::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header = args[:header] if args.key?(:header) + @policy = args[:policy] if args.key?(:policy) + end + end + + # + class PoliciesUpdateResponse + include Google::Apis::Core::Hashable + + # Elements common to every response. + # Corresponds to the JSON property `header` + # @return [Google::Apis::DnsV1beta2::ResponseHeader] + attr_accessor :header + + # A policy is a collection of rules applied to one or more networks that specify + # forwarding behavior for that network. + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DnsV1beta2::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header = args[:header] if args.key?(:header) + @policy = args[:policy] if args.key?(:policy) + end + end + + # A policy is a collection of rules applied to one or more networks that specify + # forwarding behavior for that network. + class Policy + include Google::Apis::Core::Hashable + + # Sets an alternative name server for the associated networks. When specified, + # all DNS queries are forwarded to a name server that you choose. Names such as . + # internal are not available when an alternative name server is specified. + # Corresponds to the JSON property `alternativeNameServerConfig` + # @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig] + attr_accessor :alternative_name_server_config + + # A mutable string of at most 1024 characters associated with this resource for + # the user's convenience. Has no effect on the policy's function. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Allows networks bound to this policy to receive DNS queries sent by VMs or + # applications over VPN connections. When enabled, a virtual IP address will be + # allocated from each of the sub-networks that are bound to this policy. + # Corresponds to the JSON property `enableInboundForwarding` + # @return [Boolean] + attr_accessor :enable_inbound_forwarding + alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding + + # Unique identifier for the resource; defined by the server (output only). + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Identifies what kind of resource this is. Value: the fixed string "dns#policy". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # User assigned name for this policy. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # List of network names specifying networks to which this policy is applied. + # Corresponds to the JSON property `networks` + # @return [Array] + attr_accessor :networks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config) + @description = args[:description] if args.key?(:description) + @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @networks = args[:networks] if args.key?(:networks) + end + end + + # + class PolicyAlternativeNameServerConfig + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # policyAlternativeNameServerConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Sets an alternative name server for the associated networks. When specified, + # all DNS queries are forwarded to a name server that you choose. Names such as . + # internal are not available when an alternative name server is specified. + # Corresponds to the JSON property `targetNameServers` + # @return [Array] + attr_accessor :target_name_servers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers) + end + end + + # + class PolicyAlternativeNameServerConfigTargetNameServer + include Google::Apis::Core::Hashable + + # IPv4 address to forward to. + # Corresponds to the JSON property `ipv4Address` + # @return [String] + attr_accessor :ipv4_address + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # policyAlternativeNameServerConfigTargetNameServer". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class PolicyNetwork + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # policyNetwork". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The fully qualified URL of the GCE private network to bind to. This should be + # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ + # networks/`network` + # Corresponds to the JSON property `networkUrl` + # @return [String] + attr_accessor :network_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @network_url = args[:network_url] if args.key?(:network_url) + end + end + # A project resource. The project is a top level container for resources # including Cloud DNS ManagedZones. Projects can be created only in the APIs # console. @@ -811,6 +1113,16 @@ module Google # @return [Fixnum] attr_accessor :networks_per_managed_zone + # Maximum allowed number of networks per policy. + # Corresponds to the JSON property `networksPerPolicy` + # @return [Fixnum] + attr_accessor :networks_per_policy + + # Maximum allowed number of policies per project. + # Corresponds to the JSON property `policies` + # @return [Fixnum] + attr_accessor :policies + # Maximum allowed number of ResourceRecords per ResourceRecordSet. # Corresponds to the JSON property `resourceRecordsPerRrset` # @return [Fixnum] @@ -832,6 +1144,16 @@ module Google # @return [Fixnum] attr_accessor :rrsets_per_managed_zone + # Maximum allowed number of target name servers per managed forwarding zone. + # Corresponds to the JSON property `targetNameServersPerManagedZone` + # @return [Fixnum] + attr_accessor :target_name_servers_per_managed_zone + + # Maximum allowed number of alternative target name servers per policy. + # Corresponds to the JSON property `targetNameServersPerPolicy` + # @return [Fixnum] + attr_accessor :target_name_servers_per_policy + # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. # Corresponds to the JSON property `totalRrdataSizePerChange` # @return [Fixnum] @@ -853,10 +1175,14 @@ module Google @managed_zones = args[:managed_zones] if args.key?(:managed_zones) @managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network) @networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone) + @networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy) + @policies = args[:policies] if args.key?(:policies) @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset) @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change) @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change) @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone) + @target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone) + @target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy) @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change) @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs) end diff --git a/generated/google/apis/dns_v1beta2/representations.rb b/generated/google/apis/dns_v1beta2/representations.rb index f8a40f576..b6db7d675 100644 --- a/generated/google/apis/dns_v1beta2/representations.rb +++ b/generated/google/apis/dns_v1beta2/representations.rb @@ -70,6 +70,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManagedZoneForwardingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ManagedZoneForwardingConfigNameServerTarget + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ManagedZoneOperationsListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +124,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PoliciesListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PoliciesPatchResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PoliciesUpdateResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PolicyAlternativeNameServerConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PolicyAlternativeNameServerConfigTargetNameServer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PolicyNetwork + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Project class Representation < Google::Apis::Core::JsonRepresentation; end @@ -225,6 +279,8 @@ module Google property :dns_name, as: 'dnsName' property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig::Representation + property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig::Representation + property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' hash :labels, as: 'labels' @@ -248,6 +304,23 @@ module Google end end + class ManagedZoneForwardingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget::Representation + + end + end + + class ManagedZoneForwardingConfigNameServerTarget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ipv4_address, as: 'ipv4Address' + property :kind, as: 'kind' + end + end + class ManagedZoneOperationsListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -325,6 +398,78 @@ module Google end end + class PoliciesListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + collection :policies, as: 'policies', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation + + end + end + + class PoliciesPatchResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation + + property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation + + end + end + + class PoliciesUpdateResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation + + property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation + + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig::Representation + + property :description, as: 'description' + property :enable_inbound_forwarding, as: 'enableInboundForwarding' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::PolicyNetwork, decorator: Google::Apis::DnsV1beta2::PolicyNetwork::Representation + + end + end + + class PolicyAlternativeNameServerConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer::Representation + + end + end + + class PolicyAlternativeNameServerConfigTargetNameServer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ipv4_address, as: 'ipv4Address' + property :kind, as: 'kind' + end + end + + class PolicyNetwork + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :network_url, as: 'networkUrl' + end + end + class Project # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -344,10 +489,14 @@ module Google property :managed_zones, as: 'managedZones' property :managed_zones_per_network, as: 'managedZonesPerNetwork' property :networks_per_managed_zone, as: 'networksPerManagedZone' + property :networks_per_policy, as: 'networksPerPolicy' + property :policies, as: 'policies' property :resource_records_per_rrset, as: 'resourceRecordsPerRrset' property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange' property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange' property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone' + property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone' + property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy' property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange' collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation diff --git a/generated/google/apis/dns_v1beta2/service.rb b/generated/google/apis/dns_v1beta2/service.rb index eff9ee5e9..2f0ed85e3 100644 --- a/generated/google/apis/dns_v1beta2/service.rb +++ b/generated/google/apis/dns_v1beta2/service.rb @@ -632,6 +632,252 @@ module Google execute_or_queue_command(command, &block) end + # Create a new Policy + # @param [String] project + # Identifies the project addressed by this request. + # @param [Google::Apis::DnsV1beta2::Policy] policy_object + # @param [String] client_operation_id + # For mutating operation requests only. An optional identifier specified by the + # client. Must be unique for operation resources in the Operations collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DnsV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DnsV1beta2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/policies', options) + command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation + command.response_class = Google::Apis::DnsV1beta2::Policy + command.params['project'] = project unless project.nil? + command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Delete a previously created Policy. Will fail if the policy is still being + # referenced by a network. + # @param [String] project + # Identifies the project addressed by this request. + # @param [String] policy + # User given friendly name of the policy addressed by this request. + # @param [String] client_operation_id + # For mutating operation requests only. An optional identifier specified by the + # client. Must be unique for operation resources in the Operations collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/policies/{policy}', options) + command.params['project'] = project unless project.nil? + command.params['policy'] = policy unless policy.nil? + command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Fetch the representation of an existing Policy. + # @param [String] project + # Identifies the project addressed by this request. + # @param [String] policy + # User given friendly name of the policy addressed by this request. + # @param [String] client_operation_id + # For mutating operation requests only. An optional identifier specified by the + # client. Must be unique for operation resources in the Operations collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DnsV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DnsV1beta2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/policies/{policy}', options) + command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation + command.response_class = Google::Apis::DnsV1beta2::Policy + command.params['project'] = project unless project.nil? + command.params['policy'] = policy unless policy.nil? + command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Enumerate all Policies associated with a project. + # @param [String] project + # Identifies the project addressed by this request. + # @param [Fixnum] max_results + # Optional. Maximum number of results to be returned. If unspecified, the server + # will decide how many results to return. + # @param [String] page_token + # Optional. A tag returned by a previous list request that was truncated. Use + # this parameter to continue a previous list request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DnsV1beta2::PoliciesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DnsV1beta2::PoliciesListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/policies', options) + command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation + command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse + command.params['project'] = project unless project.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Apply a partial update to an existing Policy. + # @param [String] project + # Identifies the project addressed by this request. + # @param [String] policy + # User given friendly name of the policy addressed by this request. + # @param [Google::Apis::DnsV1beta2::Policy] policy_object + # @param [String] client_operation_id + # For mutating operation requests only. An optional identifier specified by the + # client. Must be unique for operation resources in the Operations collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DnsV1beta2::PoliciesPatchResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DnsV1beta2::PoliciesPatchResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/policies/{policy}', options) + command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation + command.response_class = Google::Apis::DnsV1beta2::PoliciesPatchResponse + command.params['project'] = project unless project.nil? + command.params['policy'] = policy unless policy.nil? + command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Update an existing Policy. + # @param [String] project + # Identifies the project addressed by this request. + # @param [String] policy + # User given friendly name of the policy addressed by this request. + # @param [Google::Apis::DnsV1beta2::Policy] policy_object + # @param [String] client_operation_id + # For mutating operation requests only. An optional identifier specified by the + # client. Must be unique for operation resources in the Operations collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DnsV1beta2::PoliciesUpdateResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DnsV1beta2::PoliciesUpdateResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{project}/policies/{policy}', options) + command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation + command.response_class = Google::Apis::DnsV1beta2::PoliciesUpdateResponse + command.params['project'] = project unless project.nil? + command.params['policy'] = policy unless policy.nil? + command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Fetch the representation of an existing Project. # @param [String] project # Identifies the project addressed by this request. diff --git a/generated/google/apis/firebasehosting_v1beta1.rb b/generated/google/apis/firebasehosting_v1beta1.rb index 43612c8fc..ad749b725 100644 --- a/generated/google/apis/firebasehosting_v1beta1.rb +++ b/generated/google/apis/firebasehosting_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/hosting/ module FirebasehostingV1beta1 VERSION = 'V1beta1' - REVISION = '20181004' + REVISION = '20181116' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/firebasehosting_v1beta1/classes.rb b/generated/google/apis/firebasehosting_v1beta1/classes.rb index 63d877697..e4c125936 100644 --- a/generated/google/apis/firebasehosting_v1beta1/classes.rb +++ b/generated/google/apis/firebasehosting_v1beta1/classes.rb @@ -620,6 +620,30 @@ module Google end end + # A `SiteConfig` contains metadata associated with a specific site that + # controls Firebase Hosting serving behavior + class SiteConfig + include Google::Apis::Core::Hashable + + # The number of FINALIZED versions that will be held for a site before + # automatic deletion. When a new version is deployed, content for versions + # in storage in excess of this number will be deleted, and will no longer be + # billed for storage usage. Oldest versions will be deleted first; sites are + # created with an unlimited number of max_versions by default. + # Corresponds to the JSON property `maxVersions` + # @return [Fixnum] + attr_accessor :max_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_versions = args[:max_versions] if args.key?(:max_versions) + end + end + # A `Version` is the collection of configuration and # [static files](sites.versions.files) that determine how a site is displayed. class Version diff --git a/generated/google/apis/firebasehosting_v1beta1/representations.rb b/generated/google/apis/firebasehosting_v1beta1/representations.rb index 2a497d049..8ac8e0f88 100644 --- a/generated/google/apis/firebasehosting_v1beta1/representations.rb +++ b/generated/google/apis/firebasehosting_v1beta1/representations.rb @@ -124,6 +124,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SiteConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Version class Representation < Google::Apis::Core::JsonRepresentation; end @@ -302,6 +308,13 @@ module Google end end + class SiteConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_versions, :numeric_string => true, as: 'maxVersions' + end + end + class Version # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/firebasehosting_v1beta1/service.rb b/generated/google/apis/firebasehosting_v1beta1/service.rb index 2e90e3c67..a95f1ca01 100644 --- a/generated/google/apis/firebasehosting_v1beta1/service.rb +++ b/generated/google/apis/firebasehosting_v1beta1/service.rb @@ -47,6 +47,78 @@ module Google @batch_path = 'batch' end + # Gets the Hosting metadata for a specific site. + # @param [String] name + # Required. The site for which to get the SiteConfig, in the format: + # sites/site-name/config + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_site_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation + command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the Hosting metadata for a specific site. + # @param [String] name + # Required. The site for which to update the SiteConfig, in the format: + # sites/site-name/config + # @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object + # @param [String] update_mask + # A set of field names from your [site configuration](../sites.SiteConfig) + # that you want to update. + #
A field will be overwritten if, and only if, it's in the mask. + #
If a mask is not provided then a default mask of only + # [`max_versions`](../sites.SiteConfig.max_versions) will be used. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasehostingV1beta1::SiteConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_site_config(name, site_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation + command.request_object = site_config_object + command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation + command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a domain mapping on the specified site. # @param [String] parent # Required. The parent to create the domain association for, in the format: diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index b6aa7b634..26e44a2bd 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20170922' + REVISION = '20181112' # View your activity information in Google Fit AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb index 6e2217c16..952a87638 100644 --- a/generated/google/apis/fitness_v1/classes.rb +++ b/generated/google/apis/fitness_v1/classes.rb @@ -361,8 +361,7 @@ module Google class DataPoint include Google::Apis::Core::Hashable - # Used for version checking during transformation; that is, a datapoint can only - # replace another datapoint that has an older computation time stamp. + # DO NOT USE THIS FIELD. It is ignored, and not stored. # Corresponds to the JSON property `computationTimeMillis` # @return [Fixnum] attr_accessor :computation_time_millis diff --git a/generated/google/apis/fitness_v1/service.rb b/generated/google/apis/fitness_v1/service.rb index 10ac5ae64..c1bcbb06d 100644 --- a/generated/google/apis/fitness_v1/service.rb +++ b/generated/google/apis/fitness_v1/service.rb @@ -597,9 +597,13 @@ module Google # returned in this response will only have an ID and will not have any other # fields. # @param [String] page_token - # The continuation token, which is used to page through large result sets. To - # get the next page of results, set this parameter to the value of nextPageToken - # from the previous response. + # The continuation token, which is used for incremental syncing. To get the next + # batch of changes, set this parameter to the value of nextPageToken from the + # previous response. This token is treated as a timestamp (in millis since epoch) + # . If specified, the API returns sessions modified since this time. The page + # token is ignored if either start or end time is specified. If none of start + # time, end time, and the page token is specified, sessions modified in the last + # 7 days are returned. # @param [String] start_time # An RFC3339 timestamp. Only sessions ending between the start and end times # will be included in the response. diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 8b42149b0..01481f480 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,13 +25,10 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20180802' + REVISION = '20181113' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' - - # Know the list of people in your circles, your age range, and language - AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' end end end diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 5304d3d65..2bf404551 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,16 +25,13 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20180920' + REVISION = '20181113' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' - - # Know the list of people in your circles, your age range, and language - AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' end end end diff --git a/generated/google/apis/jobs_v2.rb b/generated/google/apis/jobs_v2.rb index 4fd284f5e..2137c5e4e 100644 --- a/generated/google/apis/jobs_v2.rb +++ b/generated/google/apis/jobs_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV2 VERSION = 'V2' - REVISION = '20181011' + REVISION = '20181114' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/jobs_v2/classes.rb b/generated/google/apis/jobs_v2/classes.rb index b03ad8bf6..9af161f67 100644 --- a/generated/google/apis/jobs_v2/classes.rb +++ b/generated/google/apis/jobs_v2/classes.rb @@ -160,7 +160,7 @@ module Google attr_accessor :method_prop # Optional. - # Specifies the traffic density to use when caculating commute time. + # Specifies the traffic density to use when calculating commute time. # Must not be present if departure_hour_local is specified. # Corresponds to the JSON property `roadTraffic` # @return [String] @@ -2124,12 +2124,12 @@ module Google # Optional. # The location filter specifies geo-regions containing the jobs to # search against. See LocationFilter for more information. - # If a location value is not specified, jobs are be retrieved + # If a location value is not specified, jobs are retrieved # from all locations. # If multiple values are specified, jobs are retrieved from any of the - # specified locations, and, if different values are specified - # for the LocationFilter.distance_in_miles parameter, the maximum - # provided distance is used for all locations. + # specified locations. If different values are specified for the + # LocationFilter.distance_in_miles parameter, the maximum provided + # distance is used for all locations. # At most 5 location filters are allowed. # Corresponds to the JSON property `locationFilters` # @return [Array] @@ -2396,9 +2396,9 @@ module Google # If a location value isn't specified, jobs fitting the other search # criteria are retrieved regardless of where they're located. # If multiple values are specified, jobs are retrieved from any of the - # specified locations, and, if different values are specified - # for the LocationFilter.distance_in_miles parameter, the maximum - # provided distance is used for all locations. + # specified locations. If different values are specified for the + # LocationFilter.distance_in_miles parameter, the maximum provided + # distance is used for all locations. # At most 5 location filters are allowed. # Corresponds to the JSON property `locationFilters` # @return [Array] @@ -3072,7 +3072,6 @@ module Google class SearchJobsRequest include Google::Apis::Core::Hashable - # Deprecated. Any value provided in this field is ignored. # Optional. # Controls whether to disable relevance thresholding. Relevance # thresholding removes jobs that have low relevance in search results, diff --git a/generated/google/apis/jobs_v3.rb b/generated/google/apis/jobs_v3.rb index 5002d6ef4..0a4981837 100644 --- a/generated/google/apis/jobs_v3.rb +++ b/generated/google/apis/jobs_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV3 VERSION = 'V3' - REVISION = '20181029' + REVISION = '20181114' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/jobs_v3/classes.rb b/generated/google/apis/jobs_v3/classes.rb index 1821fd056..1cd29fc3e 100644 --- a/generated/google/apis/jobs_v3/classes.rb +++ b/generated/google/apis/jobs_v3/classes.rb @@ -177,7 +177,7 @@ module Google attr_accessor :departure_time # Optional. - # Specifies the traffic density to use when caculating commute time. + # Specifies the traffic density to use when calculating commute time. # Corresponds to the JSON property `roadTraffic` # @return [String] attr_accessor :road_traffic @@ -1469,9 +1469,9 @@ module Google # If a location value isn't specified, jobs fitting the other search # criteria are retrieved regardless of where they're located. # If multiple values are specified, jobs are retrieved from any of the - # specified locations, and, if different values are specified - # for the LocationFilter.distance_in_miles parameter, the maximum - # provided distance is used for all locations. + # specified locations. If different values are specified for the + # LocationFilter.distance_in_miles parameter, the maximum provided + # distance is used for all locations. # At most 5 location filters are allowed. # Corresponds to the JSON property `locationFilters` # @return [Array] @@ -1650,7 +1650,7 @@ module Google # Radius in miles of the job location. This value is derived from the # location bounding box in which a circle with the specified radius - # centered from LatLng coves the area associated with the job location. + # centered from LatLng covers the area associated with the job location. # For example, currently, "Mountain View, CA, USA" has a radius of # 6.17 miles. # Corresponds to the JSON property `radiusInMiles` @@ -2402,7 +2402,7 @@ module Google attr_accessor :spell_correction # The precise result count, which is available only if the client set - # enable_precise_result_size to `true` or if the response + # enable_precise_result_size to `true`, or if the response # is the last page of results. Otherwise, the value is `-1`. # Corresponds to the JSON property `totalSize` # @return [Fixnum] diff --git a/generated/google/apis/jobs_v3/service.rb b/generated/google/apis/jobs_v3/service.rb index fae51bb31..e83256282 100644 --- a/generated/google/apis/jobs_v3/service.rb +++ b/generated/google/apis/jobs_v3/service.rb @@ -67,13 +67,13 @@ module Google # the BCP-47 language code, such as "en-US" or "sr-Latn". # For more information, see # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). - # For CompletionType.JOB_TITLE type, only open jobs with same + # For CompletionType.JOB_TITLE type, only open jobs with the same # language_code are returned. # For CompletionType.COMPANY_NAME type, - # only companies having open jobs with same language_code are + # only companies having open jobs with the same language_code are # returned. - # For CompletionType.COMBINED type, only open jobs with same - # language_code or companies having open jobs with same + # For CompletionType.COMBINED type, only open jobs with the same + # language_code or companies having open jobs with the same # language_code are returned. # The maximum number of allowed characters is 255. # @param [Array, String] language_codes @@ -82,13 +82,13 @@ module Google # the BCP-47 language code, such as "en-US" or "sr-Latn". # For more information, see # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). - # For CompletionType.JOB_TITLE type, only open jobs with same + # For CompletionType.JOB_TITLE type, only open jobs with the same # language_codes are returned. # For CompletionType.COMPANY_NAME type, - # only companies having open jobs with same language_codes are + # only companies having open jobs with the same language_codes are # returned. - # For CompletionType.COMBINED type, only open jobs with same - # language_codes or companies having open jobs with same + # For CompletionType.COMBINED type, only open jobs with the same + # language_codes or companies having open jobs with the same # language_codes are returned. # The maximum number of allowed characters is 255. # @param [Fixnum] page_size diff --git a/generated/google/apis/jobs_v3p1beta1.rb b/generated/google/apis/jobs_v3p1beta1.rb index 72ce5b50f..a5a80d594 100644 --- a/generated/google/apis/jobs_v3p1beta1.rb +++ b/generated/google/apis/jobs_v3p1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV3p1beta1 VERSION = 'V3p1beta1' - REVISION = '20181029' + REVISION = '20181114' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/jobs_v3p1beta1/classes.rb b/generated/google/apis/jobs_v3p1beta1/classes.rb index be90a4df2..1e2647adf 100644 --- a/generated/google/apis/jobs_v3p1beta1/classes.rb +++ b/generated/google/apis/jobs_v3p1beta1/classes.rb @@ -249,7 +249,7 @@ module Google attr_accessor :departure_time # Optional. - # Specifies the traffic density to use when caculating commute time. + # Specifies the traffic density to use when calculating commute time. # Corresponds to the JSON property `roadTraffic` # @return [String] attr_accessor :road_traffic @@ -1774,9 +1774,9 @@ module Google # If a location value isn't specified, jobs fitting the other search # criteria are retrieved regardless of where they're located. # If multiple values are specified, jobs are retrieved from any of the - # specified locations, and, if different values are specified - # for the LocationFilter.distance_in_miles parameter, the maximum - # provided distance is used for all locations. + # specified locations. If different values are specified for the + # LocationFilter.distance_in_miles parameter, the maximum provided + # distance is used for all locations. # At most 5 location filters are allowed. # Corresponds to the JSON property `locationFilters` # @return [Array] @@ -1956,7 +1956,7 @@ module Google # Radius in miles of the job location. This value is derived from the # location bounding box in which a circle with the specified radius - # centered from LatLng coves the area associated with the job location. + # centered from LatLng covers the area associated with the job location. # For example, currently, "Mountain View, CA, USA" has a radius of # 6.17 miles. # Corresponds to the JSON property `radiusInMiles` @@ -2518,9 +2518,9 @@ module Google # Optional. # Controls whether highly similar jobs are returned next to each other in - # the search results. Jobs are determined to be highly similar based on - # their titles, job categories, and locations. Highly similar results will - # be clustered so that only one representative job of the cluster will be + # the search results. Jobs are identified as highly similar based on + # their titles, job categories, and locations. Highly similar results are + # clustered so that only one representative job of the cluster is # displayed to the job seeker higher up in the results, with the other jobs # being displayed lower down in the results. # Defaults to DiversificationLevel.SIMPLE if no value @@ -2747,7 +2747,7 @@ module Google attr_accessor :spell_correction # The precise result count, which is available only if the client set - # enable_precise_result_size to `true` or if the response + # enable_precise_result_size to `true`, or if the response # is the last page of results. Otherwise, the value is `-1`. # Corresponds to the JSON property `totalSize` # @return [Fixnum] diff --git a/generated/google/apis/jobs_v3p1beta1/service.rb b/generated/google/apis/jobs_v3p1beta1/service.rb index 26ce81f1f..292aeb6db 100644 --- a/generated/google/apis/jobs_v3p1beta1/service.rb +++ b/generated/google/apis/jobs_v3p1beta1/service.rb @@ -67,13 +67,13 @@ module Google # the BCP-47 language code, such as "en-US" or "sr-Latn". # For more information, see # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). - # For CompletionType.JOB_TITLE type, only open jobs with same + # For CompletionType.JOB_TITLE type, only open jobs with the same # language_code are returned. # For CompletionType.COMPANY_NAME type, - # only companies having open jobs with same language_code are + # only companies having open jobs with the same language_code are # returned. - # For CompletionType.COMBINED type, only open jobs with same - # language_code or companies having open jobs with same + # For CompletionType.COMBINED type, only open jobs with the same + # language_code or companies having open jobs with the same # language_code are returned. # The maximum number of allowed characters is 255. # @param [Array, String] language_codes @@ -82,13 +82,13 @@ module Google # the BCP-47 language code, such as "en-US" or "sr-Latn". # For more information, see # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). - # For CompletionType.JOB_TITLE type, only open jobs with same + # For CompletionType.JOB_TITLE type, only open jobs with the same # language_codes are returned. # For CompletionType.COMPANY_NAME type, - # only companies having open jobs with same language_codes are + # only companies having open jobs with the same language_codes are # returned. - # For CompletionType.COMBINED type, only open jobs with same - # language_codes or companies having open jobs with same + # For CompletionType.COMBINED type, only open jobs with the same + # language_codes or companies having open jobs with the same # language_codes are returned. # The maximum number of allowed characters is 255. # @param [Fixnum] page_size diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index dd4d395ce..43d606d2d 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20181030' + REVISION = '20181115' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index 2e968cdc0..66308d4b5 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -584,6 +584,13 @@ module Google # @return [Array] attr_accessor :reserved_peering_ranges + # Output only. + # Name of the peering service associated with this connection. + # "services/`service name` + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + def initialize(**args) update!(**args) end @@ -593,6 +600,7 @@ module Google @network = args[:network] if args.key?(:network) @peering = args[:peering] if args.key?(:peering) @reserved_peering_ranges = args[:reserved_peering_ranges] if args.key?(:reserved_peering_ranges) + @service = args[:service] if args.key?(:service) end end diff --git a/generated/google/apis/servicenetworking_v1beta/representations.rb b/generated/google/apis/servicenetworking_v1beta/representations.rb index 7f52a4c93..52b951634 100644 --- a/generated/google/apis/servicenetworking_v1beta/representations.rb +++ b/generated/google/apis/servicenetworking_v1beta/representations.rb @@ -484,6 +484,7 @@ module Google property :network, as: 'network' property :peering, as: 'peering' collection :reserved_peering_ranges, as: 'reservedPeeringRanges' + property :service, as: 'service' end end diff --git a/generated/google/apis/servicenetworking_v1beta/service.rb b/generated/google/apis/servicenetworking_v1beta/service.rb index bafa0533f..ac4cd3988 100644 --- a/generated/google/apis/servicenetworking_v1beta/service.rb +++ b/generated/google/apis/servicenetworking_v1beta/service.rb @@ -129,6 +129,51 @@ module Google execute_or_queue_command(command, &block) end + # Allocated ranges specified for the connection may be updated. + # Operation. + # @param [String] name + # Provider peering service that is managing peering connectivity for a + # service provider organization. + # For Google services that support this functionality it is + # 'services/servicenetworking.googleapis.com'. + # @param [Google::Apis::ServicenetworkingV1beta::Connection] connection_object + # @param [Boolean] force + # If a previously defined allocated range is removed, force flag must be + # set to true. + # @param [String] update_mask + # The update mask. If this is omitted, it defaults to "*". Only reserved + # peering ranges list may be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ServicenetworkingV1beta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicenetworkingV1beta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_service(name, connection_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta/{+name}', options) + command.request_representation = Google::Apis::ServicenetworkingV1beta::Connection::Representation + command.request_object = connection_object + command.response_representation = Google::Apis::ServicenetworkingV1beta::Operation::Representation + command.response_class = Google::Apis::ServicenetworkingV1beta::Operation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # To connect service to a VPC network peering connection # must be established prior to service provisioning. # This method must be invoked by the consumer VPC network administrator @@ -180,6 +225,7 @@ module Google # service provider organization. # For Google services that support this functionality it is # 'services/servicenetworking.googleapis.com'. + # For "-" all configured public peering services will be queried. # @param [String] network # Network name in the consumer project. This network must have been # already peered with a shared VPC network using CreateConnection diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 103ad49d2..c869607a2 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20181013' + REVISION = '20181109' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 6a4488528..8db852b25 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -73,6 +73,11 @@ module Google # @return [String] attr_accessor :etag + # The bucket's IAM configuration. + # Corresponds to the JSON property `iamConfiguration` + # @return [Google::Apis::StorageV1::Bucket::IamConfiguration] + attr_accessor :iam_configuration + # The ID of the bucket. For buckets, the id and name properties are the same. # Corresponds to the JSON property `id` # @return [String] @@ -190,6 +195,7 @@ module Google @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl) @encryption = args[:encryption] if args.key?(:encryption) @etag = args[:etag] if args.key?(:etag) + @iam_configuration = args[:iam_configuration] if args.key?(:iam_configuration) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @@ -291,6 +297,54 @@ module Google end end + # The bucket's IAM configuration. + class IamConfiguration + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `bucketPolicyOnly` + # @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly] + attr_accessor :bucket_policy_only + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_policy_only = args[:bucket_policy_only] if args.key?(:bucket_policy_only) + end + + # + class BucketPolicyOnly + include Google::Apis::Core::Hashable + + # If set, access checks only use bucket-level IAM policies or above. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # The deadline time for changing iamConfiguration.bucketPolicyOnly.enabled from + # true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled + # may be changed from true to false until the locked time, after which the field + # is immutable. + # Corresponds to the JSON property `lockedTime` + # @return [DateTime] + attr_accessor :locked_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + @locked_time = args[:locked_time] if args.key?(:locked_time) + end + end + end + # The bucket's lifecycle configuration. See lifecycle management for more # information. class Lifecycle diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 5c84f8903..1aad16080 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -43,6 +43,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IamConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + class BucketPolicyOnly + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class Lifecycle class Representation < Google::Apis::Core::JsonRepresentation; end @@ -247,6 +259,8 @@ module Google property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation property :etag, as: 'etag' + property :iam_configuration, as: 'iamConfiguration', class: Google::Apis::StorageV1::Bucket::IamConfiguration, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::Representation + property :id, as: 'id' property :kind, as: 'kind' hash :labels, as: 'labels' @@ -298,6 +312,23 @@ module Google end end + class IamConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_policy_only, as: 'bucketPolicyOnly', class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly::Representation + + end + + class BucketPolicyOnly + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + property :locked_time, as: 'lockedTime', type: DateTime + + end + end + end + class Lifecycle # @private class Representation < Google::Apis::Core::JsonRepresentation