diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 06ff9e4af..0259f0d85 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20191024' + REVISION = '20191115' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 75e51b44b..d29494431 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -53,6 +53,11 @@ module Google class AddonsConfig include Google::Apis::Core::Hashable + # Configuration options for the Cloud Run feature. + # Corresponds to the JSON property `cloudRunConfig` + # @return [Google::Apis::ContainerV1::CloudRunConfig] + attr_accessor :cloud_run_config + # Configuration options for the horizontal pod autoscaling feature, which # increases or decreases the number of replica pods a replication controller # has based on the resource usage of the existing pods. @@ -84,6 +89,7 @@ module Google # Update properties of this object def update!(**args) + @cloud_run_config = args[:cloud_run_config] if args.key?(:cloud_run_config) @horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling) @http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing) @kubernetes_dashboard = args[:kubernetes_dashboard] if args.key?(:kubernetes_dashboard) @@ -226,20 +232,20 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The server-assigned `name` of the operation. + # Required. Deprecated. The server-assigned `name` of the operation. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation resides. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `zone` @@ -304,6 +310,26 @@ module Google end end + # Configuration options for the Cloud Run feature. + class CloudRunConfig + include Google::Apis::Core::Hashable + + # Whether Cloud Run addon is enabled for this cluster. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disabled = args[:disabled] if args.key?(:disabled) + end + end + # A Google Kubernetes Engine cluster. class Cluster include Google::Apis::Core::Hashable @@ -903,7 +929,7 @@ module Google class CompleteIpRotationRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -915,14 +941,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -980,14 +1006,14 @@ module Google # @return [String] attr_accessor :parent - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. @@ -1012,7 +1038,7 @@ module Google class CreateNodePoolRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -1035,14 +1061,14 @@ module Google # @return [String] attr_accessor :parent - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the parent field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. @@ -1681,6 +1707,15 @@ module Google class MaintenancePolicy include Google::Apis::Core::Hashable + # A hash identifying the version of this policy, so that updates to fields of + # the policy won't accidentally undo intermediate changes (and so that users + # of the API unaware of some fields won't accidentally remove other fields). + # Make a get() request to the cluster to get the current + # resource version and include it with requests to set the policy. + # Corresponds to the JSON property `resourceVersion` + # @return [String] + attr_accessor :resource_version + # MaintenanceWindow defines the maintenance window to be used for the cluster. # Corresponds to the JSON property `window` # @return [Google::Apis::ContainerV1::MaintenanceWindow] @@ -1692,6 +1727,7 @@ module Google # Update properties of this object def update!(**args) + @resource_version = args[:resource_version] if args.key?(:resource_version) @window = args[:window] if args.key?(:window) end end @@ -1705,6 +1741,17 @@ module Google # @return [Google::Apis::ContainerV1::DailyMaintenanceWindow] attr_accessor :daily_maintenance_window + # Exceptions to maintenance window. Non-emergency maintenance should not + # occur in these windows. + # Corresponds to the JSON property `maintenanceExclusions` + # @return [Hash] + attr_accessor :maintenance_exclusions + + # Represents an arbitrary window of time that recurs. + # Corresponds to the JSON property `recurringWindow` + # @return [Google::Apis::ContainerV1::RecurringTimeWindow] + attr_accessor :recurring_window + def initialize(**args) update!(**args) end @@ -1712,6 +1759,8 @@ module Google # Update properties of this object def update!(**args) @daily_maintenance_window = args[:daily_maintenance_window] if args.key?(:daily_maintenance_window) + @maintenance_exclusions = args[:maintenance_exclusions] if args.key?(:maintenance_exclusions) + @recurring_window = args[:recurring_window] if args.key?(:recurring_window) end end @@ -2457,6 +2506,56 @@ module Google end end + # Represents an arbitrary window of time that recurs. + class RecurringTimeWindow + include Google::Apis::Core::Hashable + + # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + # this window reccurs. They go on for the span of time between the start and + # end time. + # For example, to have something repeat every weekday, you'd use: + # FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + # To repeat some window daily (equivalent to the DailyMaintenanceWindow): + # FREQ=DAILY + # For the first weekend of every month: + # FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + # This specifies how frequently the window starts. Eg, if you wanted to have + # a 9-5 UTC-4 window every weekday, you'd use something like: + # + # start time = 2019-01-01T09:00:00-0400 + # end time = 2019-01-01T17:00:00-0400 + # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + # + # Windows can span multiple days. Eg, to make the window encompass every + # weekend from midnight Saturday till the last minute of Sunday UTC: + # + # start time = 2019-01-05T00:00:00Z + # end time = 2019-01-07T23:59:00Z + # recurrence = FREQ=WEEKLY;BYDAY=SA + # + # Note the start and end time's specific dates are largely arbitrary except + # to specify duration of the window and when it first starts. + # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + # Corresponds to the JSON property `recurrence` + # @return [String] + attr_accessor :recurrence + + # Represents an arbitrary window of time. + # Corresponds to the JSON property `window` + # @return [Google::Apis::ContainerV1::TimeWindow] + attr_accessor :window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @recurrence = args[:recurrence] if args.key?(:recurrence) + @window = args[:window] if args.key?(:window) + end + end + # Contains information about amount of some resource in the cluster. # For memory, value should be in GB. class ResourceLimit @@ -2528,7 +2627,7 @@ module Google class RollbackNodePoolUpgradeRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to rollback. + # Required. Deprecated. The name of the cluster to rollback. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -2541,20 +2640,20 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The name of the node pool to rollback. + # Required. Deprecated. The name of the node pool to rollback. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2629,7 +2728,7 @@ module Google # @return [Google::Apis::ContainerV1::AddonsConfig] attr_accessor :addons_config - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -2641,14 +2740,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2676,13 +2775,13 @@ module Google class SetLabelsRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The fingerprint of the previous set of labels for this resource, + # Required. The fingerprint of the previous set of labels for this resource, # used to detect conflicts. The fingerprint is initially generated by # Kubernetes Engine and changes after every request to modify or update # labels. You must always provide an up-to-date fingerprint hash when @@ -2698,19 +2797,19 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The labels to set for that cluster. + # Required. The labels to set for that cluster. # Corresponds to the JSON property `resourceLabels` # @return [Hash] attr_accessor :resource_labels - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2738,13 +2837,13 @@ module Google class SetLegacyAbacRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # Whether ABAC authorization will be enabled in the cluster. + # Required. Whether ABAC authorization will be enabled in the cluster. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled @@ -2756,14 +2855,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2789,13 +2888,13 @@ module Google class SetLocationsRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The desired list of Google Compute Engine + # Required. The desired list of Google Compute Engine # [zones](/compute/docs/zones#available) in which the cluster's nodes # should be located. Changing the locations a cluster is in will result # in nodes being either created or removed from the cluster, depending on @@ -2811,14 +2910,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2844,13 +2943,13 @@ module Google class SetLoggingServiceRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The logging service the cluster should use to write metrics. + # Required. The logging service the cluster should use to write metrics. # Currently available options: # * "logging.googleapis.com" - the Google Cloud Logging service # * "none" - no metrics will be exported from the cluster @@ -2864,14 +2963,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -2897,7 +2996,7 @@ module Google class SetMaintenancePolicyRequest include Google::Apis::Core::Hashable - # The name of the cluster to update. + # Required. The name of the cluster to update. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id @@ -2914,13 +3013,13 @@ module Google # @return [String] attr_accessor :name - # The Google Developers Console [project ID or project + # Required. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # The name of the Google Compute Engine + # Required. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # Corresponds to the JSON property `zone` @@ -2945,12 +3044,12 @@ module Google class SetMasterAuthRequest include Google::Apis::Core::Hashable - # The exact form of action to be taken on the master auth. + # Required. The exact form of action to be taken on the master auth. # Corresponds to the JSON property `action` # @return [String] attr_accessor :action - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -2962,7 +3061,7 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` @@ -2976,7 +3075,7 @@ module Google # @return [Google::Apis::ContainerV1::MasterAuth] attr_accessor :update - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3003,13 +3102,13 @@ module Google class SetMonitoringServiceRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The monitoring service the cluster should use to write metrics. + # Required. The monitoring service the cluster should use to write metrics. # Currently available options: # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring # service with Kubernetes-native resource model @@ -3025,14 +3124,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3058,7 +3157,7 @@ module Google class SetNetworkPolicyRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3076,14 +3175,14 @@ module Google # @return [Google::Apis::ContainerV1::NetworkPolicy] attr_accessor :network_policy - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3115,7 +3214,7 @@ module Google # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] attr_accessor :autoscaling - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3128,20 +3227,20 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The name of the node pool to upgrade. + # Required. Deprecated. The name of the node pool to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3169,7 +3268,7 @@ module Google class SetNodePoolManagementRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3188,20 +3287,20 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The name of the node pool to update. + # Required. Deprecated. The name of the node pool to update. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3229,7 +3328,7 @@ module Google class SetNodePoolSizeRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3242,25 +3341,25 @@ module Google # @return [String] attr_accessor :name - # The desired node count for the pool. + # Required. The desired node count for the pool. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] attr_accessor :node_count - # Deprecated. The name of the node pool to update. + # Required. Deprecated. The name of the node pool to update. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3322,7 +3421,7 @@ module Google class StartIpRotationRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3334,7 +3433,7 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` @@ -3347,7 +3446,7 @@ module Google attr_accessor :rotate_credentials alias_method :rotate_credentials?, :rotate_credentials - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3395,11 +3494,37 @@ module Google end end + # Represents an arbitrary window of time. + class TimeWindow + include Google::Apis::Core::Hashable + + # The time that the window ends. The end time should take place after the + # start time. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # The time that the window first starts. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # UpdateClusterRequest updates the settings of a cluster. class UpdateClusterRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] @@ -3411,7 +3536,7 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` @@ -3425,7 +3550,7 @@ module Google # @return [Google::Apis::ContainerV1::ClusterUpdate] attr_accessor :update - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3451,13 +3576,13 @@ module Google class UpdateMasterRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The Kubernetes version to change the master to. + # Required. The Kubernetes version to change the master to. # Users may specify either explicit versions offered by Kubernetes Engine or # version aliases, which have the following behavior: # - "latest": picks the highest valid Kubernetes version @@ -3475,14 +3600,14 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -3508,13 +3633,13 @@ module Google class UpdateNodePoolRequest include Google::Apis::Core::Hashable - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `clusterId` # @return [String] attr_accessor :cluster_id - # The desired image type for the node pool. + # Required. The desired image type for the node pool. # Corresponds to the JSON property `imageType` # @return [String] attr_accessor :image_type @@ -3526,13 +3651,13 @@ module Google # @return [String] attr_accessor :name - # Deprecated. The name of the node pool to upgrade. + # Required. Deprecated. The name of the node pool to upgrade. # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `nodePoolId` # @return [String] attr_accessor :node_pool_id - # The Kubernetes version to change the nodes to (typically an + # Required. The Kubernetes version to change the nodes to (typically an # upgrade). # Users may specify either explicit versions offered by Kubernetes Engine or # version aliases, which have the following behavior: @@ -3545,14 +3670,14 @@ module Google # @return [String] attr_accessor :node_version - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index 88630a6b1..91ec0c96e 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudRunConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Cluster class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RecurringTimeWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceLimit class Representation < Google::Apis::Core::JsonRepresentation; end @@ -430,6 +442,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TimeWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateClusterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -477,6 +495,8 @@ module Google class AddonsConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cloud_run_config, as: 'cloudRunConfig', class: Google::Apis::ContainerV1::CloudRunConfig, decorator: Google::Apis::ContainerV1::CloudRunConfig::Representation + property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1::HorizontalPodAutoscaling::Representation property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1::HttpLoadBalancing::Representation @@ -551,6 +571,13 @@ module Google end end + class CloudRunConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disabled, as: 'disabled' + end + end + class Cluster # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -869,6 +896,7 @@ module Google class MaintenancePolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :resource_version, as: 'resourceVersion' property :window, as: 'window', class: Google::Apis::ContainerV1::MaintenanceWindow, decorator: Google::Apis::ContainerV1::MaintenanceWindow::Representation end @@ -879,6 +907,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ContainerV1::DailyMaintenanceWindow, decorator: Google::Apis::ContainerV1::DailyMaintenanceWindow::Representation + hash :maintenance_exclusions, as: 'maintenanceExclusions', class: Google::Apis::ContainerV1::TimeWindow, decorator: Google::Apis::ContainerV1::TimeWindow::Representation + + property :recurring_window, as: 'recurringWindow', class: Google::Apis::ContainerV1::RecurringTimeWindow, decorator: Google::Apis::ContainerV1::RecurringTimeWindow::Representation + end end @@ -1044,6 +1076,15 @@ module Google end end + class RecurringTimeWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :recurrence, as: 'recurrence' + property :window, as: 'window', class: Google::Apis::ContainerV1::TimeWindow, decorator: Google::Apis::ContainerV1::TimeWindow::Representation + + end + end + class ResourceLimit # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1256,6 +1297,14 @@ module Google end end + class TimeWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + class UpdateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index 6b6989bf5..70f904737 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -100,11 +100,11 @@ module Google # The name (project and location) of the server config to get, # specified in the format 'projects/*/locations/*'. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) to return operations for. # This field has been deprecated and replaced by the name field. # @param [String] fields @@ -224,14 +224,14 @@ module Google # The name (project, location, cluster) of the cluster to delete. # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # Deprecated. The name of the cluster to delete. + # Required. Deprecated. The name of the cluster to delete. # This field has been deprecated and replaced by the name field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -270,14 +270,14 @@ module Google # The name (project, location, cluster) of the cluster to retrieve. # Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # Deprecated. The name of the cluster to retrieve. + # Required. Deprecated. The name of the cluster to retrieve. # This field has been deprecated and replaced by the name field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -352,11 +352,11 @@ module Google # Specified in the format 'projects/*/locations/*'. # Location "-" matches all zones and all regions. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides, or "-" for all zones. # This field has been deprecated and replaced by the parent field. @@ -841,17 +841,17 @@ module Google # delete. Specified in the format # 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to delete. + # Required. Deprecated. The name of the node pool to delete. # This field has been deprecated and replaced by the name field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -892,17 +892,17 @@ module Google # get. Specified in the format # 'projects/*/locations/*/clusters/*/nodePools/*'. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool. + # Required. Deprecated. The name of the node pool. # This field has been deprecated and replaced by the name field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -942,14 +942,14 @@ module Google # The parent (project, location, cluster id) where the node pools will be # listed. Specified in the format 'projects/*/locations/*/clusters/*'. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the parent field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. @@ -1235,14 +1235,14 @@ module Google # The name (project, location, operation id) of the operation to get. # Specified in the format 'projects/*/locations/*/operations/*'. # @param [String] operation_id - # Deprecated. The server-assigned `name` of the operation. + # Required. Deprecated. The server-assigned `name` of the operation. # This field has been deprecated and replaced by the name field. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. @@ -1282,11 +1282,11 @@ module Google # Specified in the format 'projects/*/locations/*'. # Location "-" matches all zones and all regions. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) to return operations for, or `-` for # all zones. This field has been deprecated and replaced by the parent field. # @param [String] fields @@ -1320,11 +1320,11 @@ module Google # Returns configuration info about the Google Kubernetes Engine service. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) to return operations for. # This field has been deprecated and replaced by the name field. # @param [String] name @@ -1361,16 +1361,16 @@ module Google # Sets the addons for a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object # @param [String] fields @@ -1406,16 +1406,16 @@ module Google # Completes master IP rotation. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object # @param [String] fields @@ -1460,11 +1460,11 @@ module Google # Finally, an entry is added to the project's global metadata indicating # which CIDR range the cluster is using. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. @@ -1507,16 +1507,16 @@ module Google # such as load balancer resources, are not deleted if they weren't present # when the cluster was initially created. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to delete. + # Required. Deprecated. The name of the cluster to delete. # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster) of the cluster to delete. @@ -1553,16 +1553,16 @@ module Google # Gets the details of a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to retrieve. + # Required. Deprecated. The name of the cluster to retrieve. # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster) of the cluster to retrieve. @@ -1599,16 +1599,16 @@ module Google # Enables or disables the ABAC authorization mechanism on a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object # @param [String] fields @@ -1645,11 +1645,11 @@ module Google # Lists all clusters owned by a project in either the specified zone or all # zones. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides, or "-" for all zones. # This field has been deprecated and replaced by the parent field. @@ -1688,16 +1688,16 @@ module Google # Sets the locations for a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_request_object # @param [String] fields @@ -1733,16 +1733,16 @@ module Google # Sets the logging service for a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object # @param [String] fields @@ -1778,16 +1778,16 @@ module Google # Updates the master for a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_request_object # @param [String] fields @@ -1823,16 +1823,16 @@ module Google # Sets the monitoring service for a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_request_object # @param [String] fields @@ -1868,16 +1868,16 @@ module Google # Sets labels on a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object # @param [String] fields @@ -1913,14 +1913,14 @@ module Google # Sets the maintenance policy for a cluster. # @param [String] project_id - # The Google Developers Console [project ID or project + # Required. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # @param [String] zone - # The name of the Google Compute Engine + # Required. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # @param [String] cluster_id - # The name of the cluster to update. + # Required. The name of the cluster to update. # @param [Google::Apis::ContainerV1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1957,16 +1957,16 @@ module Google # or a specific cluster, either via password generation or explicitly setting # the password. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object # @param [String] fields @@ -2002,16 +2002,16 @@ module Google # Enables or disables Network Policy for a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object # @param [String] fields @@ -2047,16 +2047,16 @@ module Google # Starts master IP rotation. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object # @param [String] fields @@ -2092,16 +2092,16 @@ module Google # Updates the settings of a specific cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object # @param [String] fields @@ -2137,19 +2137,19 @@ module Google # Sets the autoscaling settings for the specified node pool. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to upgrade. + # Required. Deprecated. The name of the node pool to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object # @param [String] fields @@ -2186,16 +2186,16 @@ module Google # Creates a node pool for a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the parent field. # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object # @param [String] fields @@ -2231,19 +2231,19 @@ module Google # Deletes a node pool from a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to delete. + # Required. Deprecated. The name of the node pool to delete. # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster, node pool id) of the node pool to @@ -2282,19 +2282,19 @@ module Google # Retrieves the requested node pool. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool. + # Required. Deprecated. The name of the node pool. # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, cluster, node pool id) of the node pool to @@ -2333,16 +2333,16 @@ module Google # Lists the node pools for a cluster. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://developers.google.com/console/help/new/#projectnumber). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the parent field. # @param [String] cluster_id - # Deprecated. The name of the cluster. + # Required. Deprecated. The name of the cluster. # This field has been deprecated and replaced by the parent field. # @param [String] parent # The parent (project, location, cluster id) where the node pools will be @@ -2380,19 +2380,19 @@ module Google # Rolls back a previously Aborted or Failed NodePool upgrade. # This makes no changes if the last upgrade successfully completed. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to rollback. + # Required. Deprecated. The name of the cluster to rollback. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to rollback. + # Required. Deprecated. The name of the node pool to rollback. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object # @param [String] fields @@ -2429,19 +2429,19 @@ module Google # Sets the NodeManagement options for a node pool. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to update. + # Required. Deprecated. The name of the node pool to update. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object # @param [String] fields @@ -2478,19 +2478,19 @@ module Google # Sets the size for a specific node pool. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to update. + # Required. Deprecated. The name of the cluster to update. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to update. + # Required. Deprecated. The name of the node pool to update. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object # @param [String] fields @@ -2527,19 +2527,19 @@ module Google # Updates the version and/or image type for the specified node pool. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] cluster_id - # Deprecated. The name of the cluster to upgrade. + # Required. Deprecated. The name of the cluster to upgrade. # This field has been deprecated and replaced by the name field. # @param [String] node_pool_id - # Deprecated. The name of the node pool to upgrade. + # Required. Deprecated. The name of the node pool to upgrade. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_request_object # @param [String] fields @@ -2576,15 +2576,15 @@ module Google # Cancels the specified operation. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the operation resides. # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # Deprecated. The server-assigned `name` of the operation. + # Required. Deprecated. The server-assigned `name` of the operation. # This field has been deprecated and replaced by the name field. # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object # @param [String] fields @@ -2620,16 +2620,16 @@ module Google # Gets the specified operation. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the name field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) in which the cluster # resides. # This field has been deprecated and replaced by the name field. # @param [String] operation_id - # Deprecated. The server-assigned `name` of the operation. + # Required. Deprecated. The server-assigned `name` of the operation. # This field has been deprecated and replaced by the name field. # @param [String] name # The name (project, location, operation id) of the operation to get. @@ -2666,11 +2666,11 @@ module Google # Lists all operations in a project in a specific zone or all zones. # @param [String] project_id - # Deprecated. The Google Developers Console [project ID or project + # Required. Deprecated. The Google Developers Console [project ID or project # number](https://support.google.com/cloud/answer/6158840). # This field has been deprecated and replaced by the parent field. # @param [String] zone - # Deprecated. The name of the Google Compute Engine + # Required. Deprecated. The name of the Google Compute Engine # [zone](/compute/docs/zones#available) to return operations for, or `-` for # all zones. This field has been deprecated and replaced by the parent field. # @param [String] parent diff --git a/generated/google/apis/firebase_v1beta1.rb b/generated/google/apis/firebase_v1beta1.rb index ef17e6a85..7d39f237f 100644 --- a/generated/google/apis/firebase_v1beta1.rb +++ b/generated/google/apis/firebase_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://firebase.google.com module FirebaseV1beta1 VERSION = 'V1beta1' - REVISION = '20191125' + REVISION = '20191203' # 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/firebase_v1beta1/classes.rb b/generated/google/apis/firebase_v1beta1/classes.rb index 093c29ea2..3bfad21fb 100644 --- a/generated/google/apis/firebase_v1beta1/classes.rb +++ b/generated/google/apis/firebase_v1beta1/classes.rb @@ -795,6 +795,11 @@ module Google class Location include Google::Apis::Core::Hashable + # Products and services that are available in the GCP resource location. + # Corresponds to the JSON property `features` + # @return [Array] + attr_accessor :features + # The ID of the GCP resource location. It will be one of the available [GCP # resource # locations](https://firebase.google.com/docs/projects/locations#types). @@ -802,13 +807,23 @@ module Google # @return [String] attr_accessor :location_id + # Indicates whether the GCP resource location is a [regional or + # multi-regional + # location](https://firebase.google.com/docs/projects/locations#types) + # for data replication. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @features = args[:features] if args.key?(:features) @location_id = args[:location_id] if args.key?(:location_id) + @type = args[:type] if args.key?(:type) end end diff --git a/generated/google/apis/firebase_v1beta1/representations.rb b/generated/google/apis/firebase_v1beta1/representations.rb index 532ba3739..2aaaeafb7 100644 --- a/generated/google/apis/firebase_v1beta1/representations.rb +++ b/generated/google/apis/firebase_v1beta1/representations.rb @@ -420,7 +420,9 @@ module Google class Location # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :features, as: 'features' property :location_id, as: 'locationId' + property :type, as: 'type' end end diff --git a/generated/google/apis/securitycenter_v1.rb b/generated/google/apis/securitycenter_v1.rb index 1c2e18ce8..a306ae315 100644 --- a/generated/google/apis/securitycenter_v1.rb +++ b/generated/google/apis/securitycenter_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1 VERSION = 'V1' - REVISION = '20191115' + REVISION = '20191204' # 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/securitycenter_v1/classes.rb b/generated/google/apis/securitycenter_v1/classes.rb index f7408a7d9..fbdde787e 100644 --- a/generated/google/apis/securitycenter_v1/classes.rb +++ b/generated/google/apis/securitycenter_v1/classes.rb @@ -257,6 +257,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -1208,16 +1225,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1235,13 +1254,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1256,8 +1277,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1266,9 +1289,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -1280,26 +1303,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1494,16 +1522,18 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1521,13 +1551,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1542,8 +1574,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::SecuritycenterV1::Policy] attr_accessor :policy diff --git a/generated/google/apis/securitycenter_v1beta1.rb b/generated/google/apis/securitycenter_v1beta1.rb index 2dd9ab7d4..98c2eafd2 100644 --- a/generated/google/apis/securitycenter_v1beta1.rb +++ b/generated/google/apis/securitycenter_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview module SecuritycenterV1beta1 VERSION = 'V1beta1' - REVISION = '20191115' + REVISION = '20191204' # 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/securitycenter_v1beta1/classes.rb b/generated/google/apis/securitycenter_v1beta1/classes.rb index f8653f004..111cf7e3f 100644 --- a/generated/google/apis/securitycenter_v1beta1/classes.rb +++ b/generated/google/apis/securitycenter_v1beta1/classes.rb @@ -249,6 +249,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -1075,16 +1092,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1102,13 +1121,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1123,8 +1144,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1133,9 +1156,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -1147,26 +1170,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1316,16 +1344,18 @@ module Google class SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1343,13 +1373,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1364,8 +1396,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::SecuritycenterV1beta1::Policy] attr_accessor :policy diff --git a/generated/google/apis/servicebroker_v1.rb b/generated/google/apis/servicebroker_v1.rb index a9a62bd5e..f9442f1d6 100644 --- a/generated/google/apis/servicebroker_v1.rb +++ b/generated/google/apis/servicebroker_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1 VERSION = 'V1' - REVISION = '20191112' + REVISION = '20191202' # 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/servicebroker_v1/classes.rb b/generated/google/apis/servicebroker_v1/classes.rb index 31e423a64..874554390 100644 --- a/generated/google/apis/servicebroker_v1/classes.rb +++ b/generated/google/apis/servicebroker_v1/classes.rb @@ -46,6 +46,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -70,16 +87,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -97,13 +116,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -118,14 +139,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class GoogleIamV1Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -137,26 +160,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -177,16 +205,18 @@ module Google class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -204,13 +234,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -225,8 +257,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ServicebrokerV1::GoogleIamV1Policy] attr_accessor :policy diff --git a/generated/google/apis/servicebroker_v1alpha1.rb b/generated/google/apis/servicebroker_v1alpha1.rb index 417c10128..7bd2ab753 100644 --- a/generated/google/apis/servicebroker_v1alpha1.rb +++ b/generated/google/apis/servicebroker_v1alpha1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191112' + REVISION = '20191202' # 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/servicebroker_v1alpha1/classes.rb b/generated/google/apis/servicebroker_v1alpha1/classes.rb index ffeafbcc7..6f28e5161 100644 --- a/generated/google/apis/servicebroker_v1alpha1/classes.rb +++ b/generated/google/apis/servicebroker_v1alpha1/classes.rb @@ -750,6 +750,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -774,16 +791,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -801,13 +820,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -822,14 +843,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class GoogleIamV1Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -841,26 +864,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -881,16 +909,18 @@ module Google class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -908,13 +938,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -929,8 +961,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ServicebrokerV1alpha1::GoogleIamV1Policy] attr_accessor :policy diff --git a/generated/google/apis/servicebroker_v1beta1.rb b/generated/google/apis/servicebroker_v1beta1.rb index ce7ae8928..c4eabefcf 100644 --- a/generated/google/apis/servicebroker_v1beta1.rb +++ b/generated/google/apis/servicebroker_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker module ServicebrokerV1beta1 VERSION = 'V1beta1' - REVISION = '20191112' + REVISION = '20191202' # 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/servicebroker_v1beta1/classes.rb b/generated/google/apis/servicebroker_v1beta1/classes.rb index c8571a113..a41567578 100644 --- a/generated/google/apis/servicebroker_v1beta1/classes.rb +++ b/generated/google/apis/servicebroker_v1beta1/classes.rb @@ -867,6 +867,23 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For + # example, `alice@example.com?uid=123456789012345678901`. If the user is + # recovered, this value reverts to `user:`emailid`` and the recovered user + # retains the role in the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, + # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to + # `serviceAccount:`emailid`` and the undeleted service account retains the + # role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently + # deleted. For example, `admins@example.com?uid=123456789012345678901`. If + # the group is recovered, this value reverts to `group:`emailid`` and the + # recovered group retains the role in the binding. # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` @@ -891,16 +908,18 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -918,13 +937,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -939,14 +960,16 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). class GoogleIamV1Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally may specify a - # `condition` that determines when binding is in effect. - # `bindings` with no members will result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a + # `condition` that determines how and when the `bindings` are applied. Each + # of the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -958,26 +981,31 @@ module Google # conditions: An `etag` is returned in the response to `getIamPolicy`, and # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. Due to blind-set semantics of an etag-less policy, - # 'setIamPolicy' will not fail even if the incoming policy version does not - # meet the requirements for modifying the stored policy. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Operations affecting conditional bindings must specify version 3. This can - # be either setting a conditional policy, modifying a conditional binding, - # or removing a binding (conditional or unconditional) from the stored - # conditional policy. - # Operations on non-conditional policies may specify any valid value or - # leave the field unset. - # If no etag is provided in the call to `setIamPolicy`, version compliance - # checks against the stored policy is skipped. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + # are rejected. + # Any operation that affects conditional role bindings must specify version + # `3`. This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding + # * Adding a conditional role binding to a policy + # * Changing a conditional role binding in a policy + # * Removing any role binding, with or without a condition, from a policy + # that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows + # you to overwrite a version `3` policy with a version `1` policy, and all of + # the conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -998,16 +1026,18 @@ module Google class GoogleIamV1SetIamPolicyRequest include Google::Apis::Core::Hashable - # Defines an Identity and Access Management (IAM) policy. It is used to - # specify access control policies for Cloud Platform resources. + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more # `members` to a single `role`. Members can be user accounts, service accounts, # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions (defined by IAM or configured by users). A `binding` can - # optionally specify a `condition`, which is a logic expression that further - # constrains the role binding based on attributes about the request and/or - # target resource. - # **JSON Example** + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # Optionally, a `binding` can specify a `condition`, which is a logical + # expression that allows access to a resource only if the expression evaluates + # to `true`. A condition can add constraints based on attributes of the + # request, the resource, or both. + # **JSON example:** # ` # "bindings": [ # ` @@ -1025,13 +1055,15 @@ module Google # "condition": ` # "title": "expirable access", # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < - # timestamp('2020-10-01T00:00:00.000Z')", + # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') + # ", # ` # ` - # ] + # ], + # "etag": "BwWWja0YfJA=", + # "version": 3 # ` - # **YAML Example** + # **YAML example:** # bindings: # - members: # - user:mike@example.com @@ -1046,8 +1078,10 @@ module Google # title: expirable access # description: Does not grant access after Sep 2020 # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + # - etag: BwWWja0YfJA= + # - version: 3 # For a description of IAM and its features, see the - # [IAM developer's guide](https://cloud.google.com/iam/docs). + # [IAM documentation](https://cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ServicebrokerV1beta1::GoogleIamV1Policy] attr_accessor :policy diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index aa1c227f2..6e3e7cb74 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20191113' + REVISION = '20191203' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index c90bffa13..4aaef5558 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1912,42 +1912,19 @@ module Google # @return [String] attr_accessor :type - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) + # * `Ki` kibi (2^10) + # * `Mi` mebi (2^20) + # * `Gi` gibi (2^30) + # * `Ti` tebi (2^40) + # * `Pi` pebi (2^50) # **Grammar** # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # * `/` division or ratio (as an infix operator). For examples, + # `kBy/`email`` or `MiBy/10ms` (although you should almost never + # have `/s` in a metric `unit`; rates should always be computed at + # query time from the underlying cumulative or delta value). + # * `.` multiplication or composition (as an infix operator). For + # examples, `GBy.d` or `k`watt`.h`. # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] @@ -1956,14 +1933,25 @@ module Google # ; # Annotation = "`" NAME "`" ; # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + # is used alone, then the unit is equivalent to `1`. For examples, + # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # * `1` represents dimensionless value 1, such as in `1/s`. - # * `%` represents dimensionless value 1/100, and annotates values giving - # a percentage. + # containing ``` or ```. + # * `1` represents a unitary [dimensionless + # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + # as in `1/s`. It is typically used when none of the basic units are + # appropriate. For example, "new users per day" can be represented as + # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new + # users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric + # value of `5.3` would mean "5300 page views per day"). + # * `%` represents dimensionless value of 1/100, and annotates values giving + # a percentage (so the metric values are typically in the range of 0..100, + # and a metric value `3` means "3 percent"). + # * `10^2.%` indicates a metric contains a ratio, typically in the range + # 0..1, that will be multiplied by 100 and displayed as a percentage + # (so a metric value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index c3cf4046d..fa4af3579 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20191113' + REVISION = '20191203' # 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_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 652205c22..38100a5a1 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -1006,6 +1006,28 @@ module Google end end + # Request to enable VPC service controls. + class EnableVpcServiceControlsRequest + include Google::Apis::Core::Hashable + + # Required. The network that the consumer is using to connect with services. + # Must be in the form of projects/`project`/global/networks/`network` + # `project` is a project number, as in '12345' + # `network` is network name. + # Corresponds to the JSON property `consumerNetwork` + # @return [String] + attr_accessor :consumer_network + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumer_network = args[:consumer_network] if args.key?(:consumer_network) + end + end + # `Endpoint` describes a network endpoint that serves a set of APIs. # A service may expose any number of endpoints, and all endpoints share the # same service configuration, such as quota configuration and monitoring @@ -1949,42 +1971,19 @@ module Google # @return [String] attr_accessor :type - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) + # * `Ki` kibi (2^10) + # * `Mi` mebi (2^20) + # * `Gi` gibi (2^30) + # * `Ti` tebi (2^40) + # * `Pi` pebi (2^50) # **Grammar** # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # * `/` division or ratio (as an infix operator). For examples, + # `kBy/`email`` or `MiBy/10ms` (although you should almost never + # have `/s` in a metric `unit`; rates should always be computed at + # query time from the underlying cumulative or delta value). + # * `.` multiplication or composition (as an infix operator). For + # examples, `GBy.d` or `k`watt`.h`. # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] @@ -1993,14 +1992,25 @@ module Google # ; # Annotation = "`" NAME "`" ; # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + # is used alone, then the unit is equivalent to `1`. For examples, + # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # * `1` represents dimensionless value 1, such as in `1/s`. - # * `%` represents dimensionless value 1/100, and annotates values giving - # a percentage. + # containing ``` or ```. + # * `1` represents a unitary [dimensionless + # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + # as in `1/s`. It is typically used when none of the basic units are + # appropriate. For example, "new users per day" can be represented as + # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new + # users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric + # value of `5.3` would mean "5300 page views per day"). + # * `%` represents dimensionless value of 1/100, and annotates values giving + # a percentage (so the metric values are typically in the range of 0..100, + # and a metric value `3` means "3 percent"). + # * `10^2.%` indicates a metric contains a ratio, typically in the range + # 0..1, that will be multiplied by 100 and displayed as a percentage + # (so a metric value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/servicenetworking_v1/representations.rb b/generated/google/apis/servicenetworking_v1/representations.rb index f74bb79b9..c852efe87 100644 --- a/generated/google/apis/servicenetworking_v1/representations.rb +++ b/generated/google/apis/servicenetworking_v1/representations.rb @@ -154,6 +154,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class EnableVpcServiceControlsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Endpoint class Representation < Google::Apis::Core::JsonRepresentation; end @@ -624,6 +630,13 @@ module Google end end + class EnableVpcServiceControlsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consumer_network, as: 'consumerNetwork' + end + end + class Endpoint # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/servicenetworking_v1/service.rb b/generated/google/apis/servicenetworking_v1/service.rb index 12191139c..8908812cf 100644 --- a/generated/google/apis/servicenetworking_v1/service.rb +++ b/generated/google/apis/servicenetworking_v1/service.rb @@ -250,6 +250,41 @@ module Google execute_or_queue_command(command, &block) end + # Enables VPC service controls for a connection. + # @param [String] parent + # The service that is managing peering connectivity for a service producer's + # organization. For Google services that support this functionality, this + # value is `services/servicenetworking.googleapis.com`. + # @param [Google::Apis::ServicenetworkingV1::EnableVpcServiceControlsRequest] enable_vpc_service_controls_request_object + # @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::ServicenetworkingV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ServicenetworkingV1::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 enable_vpc_service_controls(parent, enable_vpc_service_controls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+parent}:enableVpcServiceControls', options) + command.request_representation = Google::Apis::ServicenetworkingV1::EnableVpcServiceControlsRequest::Representation + command.request_object = enable_vpc_service_controls_request_object + command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation + command.response_class = Google::Apis::ServicenetworkingV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Service producers can use this method to find a currently unused range # within consumer allocated ranges. This returned range is not reserved, # and not guaranteed to remain unused. diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 9b5792bf6..7dc7fdd34 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 = '20191113' + REVISION = '20191203' # 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 4c735c423..7e5a22d88 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -1867,42 +1867,19 @@ module Google # @return [String] attr_accessor :type - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) + # * `Ki` kibi (2^10) + # * `Mi` mebi (2^20) + # * `Gi` gibi (2^30) + # * `Ti` tebi (2^40) + # * `Pi` pebi (2^50) # **Grammar** # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # * `/` division or ratio (as an infix operator). For examples, + # `kBy/`email`` or `MiBy/10ms` (although you should almost never + # have `/s` in a metric `unit`; rates should always be computed at + # query time from the underlying cumulative or delta value). + # * `.` multiplication or composition (as an infix operator). For + # examples, `GBy.d` or `k`watt`.h`. # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] @@ -1911,14 +1888,25 @@ module Google # ; # Annotation = "`" NAME "`" ; # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + # is used alone, then the unit is equivalent to `1`. For examples, + # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # * `1` represents dimensionless value 1, such as in `1/s`. - # * `%` represents dimensionless value 1/100, and annotates values giving - # a percentage. + # containing ``` or ```. + # * `1` represents a unitary [dimensionless + # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + # as in `1/s`. It is typically used when none of the basic units are + # appropriate. For example, "new users per day" can be represented as + # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new + # users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric + # value of `5.3` would mean "5300 page views per day"). + # * `%` represents dimensionless value of 1/100, and annotates values giving + # a percentage (so the metric values are typically in the range of 0..100, + # and a metric value `3` means "3 percent"). + # * `10^2.%` indicates a metric contains a ratio, typically in the range + # 0..1, that will be multiplied by 100 and displayed as a percentage + # (so a metric value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 9b0517db0..9992c7c2a 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20191113' + REVISION = '20191203' # 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/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 7436c7b8d..ad952175f 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -2701,42 +2701,19 @@ module Google # @return [String] attr_accessor :type - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) + # * `Ki` kibi (2^10) + # * `Mi` mebi (2^20) + # * `Gi` gibi (2^30) + # * `Ti` tebi (2^40) + # * `Pi` pebi (2^50) # **Grammar** # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # * `/` division or ratio (as an infix operator). For examples, + # `kBy/`email`` or `MiBy/10ms` (although you should almost never + # have `/s` in a metric `unit`; rates should always be computed at + # query time from the underlying cumulative or delta value). + # * `.` multiplication or composition (as an infix operator). For + # examples, `GBy.d` or `k`watt`.h`. # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] @@ -2745,14 +2722,25 @@ module Google # ; # Annotation = "`" NAME "`" ; # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + # is used alone, then the unit is equivalent to `1`. For examples, + # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # * `1` represents dimensionless value 1, such as in `1/s`. - # * `%` represents dimensionless value 1/100, and annotates values giving - # a percentage. + # containing ``` or ```. + # * `1` represents a unitary [dimensionless + # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + # as in `1/s`. It is typically used when none of the basic units are + # appropriate. For example, "new users per day" can be represented as + # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new + # users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric + # value of `5.3` would mean "5300 page views per day"). + # * `%` represents dimensionless value of 1/100, and annotates values giving + # a percentage (so the metric values are typically in the range of 0..100, + # and a metric value `3` means "3 percent"). + # * `10^2.%` indicates a metric contains a ratio, typically in the range + # 0..1, that will be multiplied by 100 and displayed as a percentage + # (so a metric value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index c6437b16b..c3f5bd305 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20191113' + REVISION = '20191203' # 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/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 191e0bea6..f79bb8825 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -2679,42 +2679,19 @@ module Google # @return [String] attr_accessor :type - # The unit in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The - # supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # **Prefixes (PREFIX)** - # * `k` kilo (10**3) - # * `M` mega (10**6) - # * `G` giga (10**9) - # * `T` tera (10**12) - # * `P` peta (10**15) - # * `E` exa (10**18) - # * `Z` zetta (10**21) - # * `Y` yotta (10**24) - # * `m` milli (10**-3) - # * `u` micro (10**-6) - # * `n` nano (10**-9) - # * `p` pico (10**-12) - # * `f` femto (10**-15) - # * `a` atto (10**-18) - # * `z` zepto (10**-21) - # * `y` yocto (10**-24) - # * `Ki` kibi (2**10) - # * `Mi` mebi (2**20) - # * `Gi` gibi (2**30) - # * `Ti` tebi (2**40) + # * `Ki` kibi (2^10) + # * `Mi` mebi (2^20) + # * `Gi` gibi (2^30) + # * `Ti` tebi (2^40) + # * `Pi` pebi (2^50) # **Grammar** # The grammar also includes these connectors: - # * `/` division (as an infix operator, e.g. `1/s`). - # * `.` multiplication (as an infix operator, e.g. `GBy.d`) + # * `/` division or ratio (as an infix operator). For examples, + # `kBy/`email`` or `MiBy/10ms` (although you should almost never + # have `/s` in a metric `unit`; rates should always be computed at + # query time from the underlying cumulative or delta value). + # * `.` multiplication or composition (as an infix operator). For + # examples, `GBy.d` or `k`watt`.h`. # The grammar for a unit is as follows: # Expression = Component ` "." Component ` ` "/" Component ` ; # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] @@ -2723,14 +2700,25 @@ module Google # ; # Annotation = "`" NAME "`" ; # Notes: - # * `Annotation` is just a comment if it follows a `UNIT` and is - # equivalent to `1` if it is used alone. For examples, - # ``requests`/s == 1/s`, `By`transmitted`/s == By/s`. + # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + # is used alone, then the unit is equivalent to `1`. For examples, + # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing '`' or '`'. - # * `1` represents dimensionless value 1, such as in `1/s`. - # * `%` represents dimensionless value 1/100, and annotates values giving - # a percentage. + # containing ``` or ```. + # * `1` represents a unitary [dimensionless + # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + # as in `1/s`. It is typically used when none of the basic units are + # appropriate. For example, "new users per day" can be represented as + # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new + # users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric + # value of `5.3` would mean "5300 page views per day"). + # * `%` represents dimensionless value of 1/100, and annotates values giving + # a percentage (so the metric values are typically in the range of 0..100, + # and a metric value `3` means "3 percent"). + # * `10^2.%` indicates a metric contains a ratio, typically in the range + # 0..1, that will be multiplied by 100 and displayed as a percentage + # (so a metric value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit