diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index 520642ab7..ad1cccf14 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200126' + REVISION = '20200223' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index f08f9da8b..413e8bde2 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -31,6 +31,11 @@ module Google # @return [Google::Apis::AndroidpublisherV3::ApkBinary] attr_accessor :binary + # Represents the binary payload of an APK. + # Corresponds to the JSON property `testBinary` + # @return [Google::Apis::AndroidpublisherV3::ApkBinary] + attr_accessor :test_binary + # The version code of the APK, as specified in the APK's manifest file. # Corresponds to the JSON property `versionCode` # @return [Fixnum] @@ -43,6 +48,7 @@ module Google # Update properties of this object def update!(**args) @binary = args[:binary] if args.key?(:binary) + @test_binary = args[:test_binary] if args.key?(:test_binary) @version_code = args[:version_code] if args.key?(:version_code) end end @@ -302,6 +308,11 @@ module Google # @return [Array] attr_accessor :mod_ranges + # + # Corresponds to the JSON property `stratifiedSamplings` + # @return [Array] + attr_accessor :stratified_samplings + # # Corresponds to the JSON property `versionCodes` # @return [Array] @@ -314,6 +325,7 @@ module Google # Update properties of this object def update!(**args) @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) + @stratified_samplings = args[:stratified_samplings] if args.key?(:stratified_samplings) @version_codes = args[:version_codes] if args.key?(:version_codes) end end @@ -1455,6 +1467,17 @@ module Google # @return [Fixnum] attr_accessor :salt + # + # Corresponds to the JSON property `stratifiedSamplings` + # @return [Array] + attr_accessor :stratified_samplings + + # + # Corresponds to the JSON property `useAndroidId` + # @return [Boolean] + attr_accessor :use_android_id + alias_method :use_android_id?, :use_android_id + def initialize(**args) update!(**args) end @@ -1464,6 +1487,52 @@ module Google @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) @modulus = args[:modulus] if args.key?(:modulus) @salt = args[:salt] if args.key?(:salt) + @stratified_samplings = args[:stratified_samplings] if args.key?(:stratified_samplings) + @use_android_id = args[:use_android_id] if args.key?(:use_android_id) + end + end + + # + class StratifiedSampling + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `modRanges` + # @return [Array] + attr_accessor :mod_ranges + + # + # Corresponds to the JSON property `stratum` + # @return [Google::Apis::AndroidpublisherV3::Stratum] + attr_accessor :stratum + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mod_ranges = args[:mod_ranges] if args.key?(:mod_ranges) + @stratum = args[:stratum] if args.key?(:stratum) + end + end + + # + class Stratum + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) end end @@ -1893,6 +1962,21 @@ module Google class Testers include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `autoEnrolledAndroidGroups` + # @return [Array] + attr_accessor :auto_enrolled_android_groups + + # + # Corresponds to the JSON property `autoEnrolledGoogleGroups` + # @return [Array] + attr_accessor :auto_enrolled_google_groups + + # + # Corresponds to the JSON property `excludedGoogleGroups` + # @return [Array] + attr_accessor :excluded_google_groups + # A list of all Google Groups, as email addresses, that define testers for this # track. # Corresponds to the JSON property `googleGroups` @@ -1905,6 +1989,9 @@ module Google # Update properties of this object def update!(**args) + @auto_enrolled_android_groups = args[:auto_enrolled_android_groups] if args.key?(:auto_enrolled_android_groups) + @auto_enrolled_google_groups = args[:auto_enrolled_google_groups] if args.key?(:auto_enrolled_google_groups) + @excluded_google_groups = args[:excluded_google_groups] if args.key?(:excluded_google_groups) @google_groups = args[:google_groups] if args.key?(:google_groups) end end @@ -2014,11 +2101,22 @@ module Google # @return [String] attr_accessor :name + # + # Corresponds to the JSON property `pinnedVersions` + # @return [Array] + attr_accessor :pinned_versions + # The description of what is new in the app in this release. # Corresponds to the JSON property `releaseNotes` # @return [Array] attr_accessor :release_notes + # + # Corresponds to the JSON property `rollbackEnabled` + # @return [Boolean] + attr_accessor :rollback_enabled + alias_method :rollback_enabled?, :rollback_enabled + # # Corresponds to the JSON property `sampling` # @return [Google::Apis::AndroidpublisherV3::Sampling] @@ -2053,7 +2151,9 @@ module Google @country_targeting = args[:country_targeting] if args.key?(:country_targeting) @in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority) @name = args[:name] if args.key?(:name) + @pinned_versions = args[:pinned_versions] if args.key?(:pinned_versions) @release_notes = args[:release_notes] if args.key?(:release_notes) + @rollback_enabled = args[:rollback_enabled] if args.key?(:rollback_enabled) @sampling = args[:sampling] if args.key?(:sampling) @status = args[:status] if args.key?(:status) @user_fraction = args[:user_fraction] if args.key?(:user_fraction) @@ -2061,6 +2161,99 @@ module Google end end + # + class TrackReleasePin + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `targetings` + # @return [Array] + attr_accessor :targetings + + # + # Corresponds to the JSON property `versionCodes` + # @return [Array] + attr_accessor :version_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @targetings = args[:targetings] if args.key?(:targetings) + @version_codes = args[:version_codes] if args.key?(:version_codes) + end + end + + # + class TrackReleasePinPinTargeting + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `countryCodes` + # @return [Array] + attr_accessor :country_codes + + # + # Corresponds to the JSON property `devices` + # @return [Array] + attr_accessor :devices + + # + # Corresponds to the JSON property `phoneskyVersions` + # @return [Array] + attr_accessor :phonesky_versions + + # + # Corresponds to the JSON property `sdkVersions` + # @return [Array] + attr_accessor :sdk_versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_codes = args[:country_codes] if args.key?(:country_codes) + @devices = args[:devices] if args.key?(:devices) + @phonesky_versions = args[:phonesky_versions] if args.key?(:phonesky_versions) + @sdk_versions = args[:sdk_versions] if args.key?(:sdk_versions) + end + end + + # + class TrackReleasePinPinTargetingDevicePin + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # + # Corresponds to the JSON property `device` + # @return [String] + attr_accessor :device + + # + # Corresponds to the JSON property `product` + # @return [String] + attr_accessor :product + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) + @device = args[:device] if args.key?(:device) + @product = args[:product] if args.key?(:product) + end + end + # class TracksListResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index ecab2ecac..b38785d8c 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -286,6 +286,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StratifiedSampling + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Stratum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SubscriptionCancelSurveyResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -370,6 +382,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TrackReleasePin + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TrackReleasePinPinTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TrackReleasePinPinTargetingDevicePin + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TracksListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -405,6 +435,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :binary, as: 'binary', class: Google::Apis::AndroidpublisherV3::ApkBinary, decorator: Google::Apis::AndroidpublisherV3::ApkBinary::Representation + property :test_binary, as: 'testBinary', class: Google::Apis::AndroidpublisherV3::ApkBinary, decorator: Google::Apis::AndroidpublisherV3::ApkBinary::Representation + property :version_code, as: 'versionCode' end end @@ -493,6 +525,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :mod_ranges, as: 'modRanges', class: Google::Apis::AndroidpublisherV3::ModRange, decorator: Google::Apis::AndroidpublisherV3::ModRange::Representation + collection :stratified_samplings, as: 'stratifiedSamplings', class: Google::Apis::AndroidpublisherV3::StratifiedSampling, decorator: Google::Apis::AndroidpublisherV3::StratifiedSampling::Representation + collection :version_codes, as: 'versionCodes' end end @@ -825,6 +859,26 @@ module Google property :modulus, :numeric_string => true, as: 'modulus' property :salt, as: 'salt' + collection :stratified_samplings, as: 'stratifiedSamplings', class: Google::Apis::AndroidpublisherV3::StratifiedSampling, decorator: Google::Apis::AndroidpublisherV3::StratifiedSampling::Representation + + property :use_android_id, as: 'useAndroidId' + end + end + + class StratifiedSampling + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :mod_ranges, as: 'modRanges', class: Google::Apis::AndroidpublisherV3::ModRange, decorator: Google::Apis::AndroidpublisherV3::ModRange::Representation + + property :stratum, as: 'stratum', class: Google::Apis::AndroidpublisherV3::Stratum, decorator: Google::Apis::AndroidpublisherV3::Stratum::Representation + + end + end + + class Stratum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' end end @@ -930,6 +984,9 @@ module Google class Testers # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :auto_enrolled_android_groups, as: 'autoEnrolledAndroidGroups' + collection :auto_enrolled_google_groups, as: 'autoEnrolledGoogleGroups' + collection :excluded_google_groups, as: 'excludedGoogleGroups' collection :google_groups, as: 'googleGroups' end end @@ -968,8 +1025,11 @@ module Google property :in_app_update_priority, as: 'inAppUpdatePriority' property :name, as: 'name' + collection :pinned_versions, as: 'pinnedVersions', class: Google::Apis::AndroidpublisherV3::TrackReleasePin, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePin::Representation + collection :release_notes, as: 'releaseNotes', class: Google::Apis::AndroidpublisherV3::LocalizedText, decorator: Google::Apis::AndroidpublisherV3::LocalizedText::Representation + property :rollback_enabled, as: 'rollbackEnabled' property :sampling, as: 'sampling', class: Google::Apis::AndroidpublisherV3::Sampling, decorator: Google::Apis::AndroidpublisherV3::Sampling::Representation property :status, as: 'status' @@ -978,6 +1038,35 @@ module Google end end + class TrackReleasePin + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :targetings, as: 'targetings', class: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargeting, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargeting::Representation + + collection :version_codes, as: 'versionCodes' + end + end + + class TrackReleasePinPinTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :country_codes, as: 'countryCodes' + collection :devices, as: 'devices', class: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargetingDevicePin, decorator: Google::Apis::AndroidpublisherV3::TrackReleasePinPinTargetingDevicePin::Representation + + collection :phonesky_versions, as: 'phoneskyVersions' + collection :sdk_versions, as: 'sdkVersions' + end + end + + class TrackReleasePinPinTargetingDevicePin + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :device, as: 'device' + property :product, as: 'product' + end + end + class TracksListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index 671ef7bd6..87e7a1de4 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/books/docs/v1/getting_started module BooksV1 VERSION = 'V1' - REVISION = '20191103' + REVISION = '20200204' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index cfc52a77c..b1281efba 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -546,6 +546,43 @@ module Google end end + # + class BooksSubscriptionReleaseInfo + include Google::Apis::Core::Hashable + + # Amount in micros of the specified currency code. + # Corresponds to the JSON property `amountInMicros` + # @return [Fixnum] + attr_accessor :amount_in_micros + + # Currency code of the amount. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # The release number of this issue/volume/book. + # Corresponds to the JSON property `releaseNumber` + # @return [String] + attr_accessor :release_number + + # The release date. + # Corresponds to the JSON property `releaseTimestampUs` + # @return [Fixnum] + attr_accessor :release_timestamp_us + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount_in_micros = args[:amount_in_micros] if args.key?(:amount_in_micros) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @release_number = args[:release_number] if args.key?(:release_number) + @release_timestamp_us = args[:release_timestamp_us] if args.key?(:release_timestamp_us) + end + end + # class RateRecommendedVolumeResponse include Google::Apis::Core::Hashable @@ -2543,11 +2580,21 @@ module Google attr_accessor :is_complete alias_method :is_complete?, :is_complete + # + # Corresponds to the JSON property `seriesFormatType` + # @return [String] + attr_accessor :series_format_type + # # Corresponds to the JSON property `seriesId` # @return [String] attr_accessor :series_id + # + # Corresponds to the JSON property `seriesSubscriptionReleaseInfo` + # @return [Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo] + attr_accessor :series_subscription_release_info + # # Corresponds to the JSON property `seriesType` # @return [String] @@ -2573,11 +2620,50 @@ module Google @eligible_for_subscription = args[:eligible_for_subscription] if args.key?(:eligible_for_subscription) @image_url = args[:image_url] if args.key?(:image_url) @is_complete = args[:is_complete] if args.key?(:is_complete) + @series_format_type = args[:series_format_type] if args.key?(:series_format_type) @series_id = args[:series_id] if args.key?(:series_id) + @series_subscription_release_info = args[:series_subscription_release_info] if args.key?(:series_subscription_release_info) @series_type = args[:series_type] if args.key?(:series_type) @subscription_id = args[:subscription_id] if args.key?(:subscription_id) @title = args[:title] if args.key?(:title) end + + # + class SeriesSubscriptionReleaseInfo + include Google::Apis::Core::Hashable + + # Cancellation date of the series subscription (or when it ends). + # Corresponds to the JSON property `cancellationTimestampUs` + # @return [Fixnum] + attr_accessor :cancellation_timestamp_us + + # Release information for the last release. + # Corresponds to the JSON property `currentReleaseInfo` + # @return [Google::Apis::BooksV1::BooksSubscriptionReleaseInfo] + attr_accessor :current_release_info + + # Release information for the next release. + # Corresponds to the JSON property `nextReleaseInfo` + # @return [Google::Apis::BooksV1::BooksSubscriptionReleaseInfo] + attr_accessor :next_release_info + + # series subscription type. + # Corresponds to the JSON property `seriesSubscriptionType` + # @return [String] + attr_accessor :series_subscription_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cancellation_timestamp_us = args[:cancellation_timestamp_us] if args.key?(:cancellation_timestamp_us) + @current_release_info = args[:current_release_info] if args.key?(:current_release_info) + @next_release_info = args[:next_release_info] if args.key?(:next_release_info) + @series_subscription_type = args[:series_subscription_type] if args.key?(:series_subscription_type) + end + end end end diff --git a/generated/google/apis/books_v1/representations.rb b/generated/google/apis/books_v1/representations.rb index 258ea688e..48e627187 100644 --- a/generated/google/apis/books_v1/representations.rb +++ b/generated/google/apis/books_v1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BooksSubscriptionReleaseInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RateRecommendedVolumeResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -399,6 +405,12 @@ module Google class Series class Representation < Google::Apis::Core::JsonRepresentation; end + + class SeriesSubscriptionReleaseInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end include Google::Apis::Core::JsonObjectSupport end @@ -804,6 +816,16 @@ module Google end end + class BooksSubscriptionReleaseInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount_in_micros, :numeric_string => true, as: 'amountInMicros' + property :currency_code, as: 'currencyCode' + property :release_number, as: 'releaseNumber' + property :release_timestamp_us, :numeric_string => true, as: 'releaseTimestampUs' + end + end + class RateRecommendedVolumeResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1380,11 +1402,26 @@ module Google property :eligible_for_subscription, as: 'eligibleForSubscription' property :image_url, as: 'imageUrl' property :is_complete, as: 'isComplete' + property :series_format_type, as: 'seriesFormatType' property :series_id, as: 'seriesId' + property :series_subscription_release_info, as: 'seriesSubscriptionReleaseInfo', class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::Representation + property :series_type, as: 'seriesType' property :subscription_id, as: 'subscriptionId' property :title, as: 'title' end + + class SeriesSubscriptionReleaseInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cancellation_timestamp_us, :numeric_string => true, as: 'cancellationTimestampUs' + property :current_release_info, as: 'currentReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation + + property :next_release_info, as: 'nextReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation + + property :series_subscription_type, as: 'seriesSubscriptionType' + end + end end end diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index 2c7d3f600..e914b4bbc 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200120' + REVISION = '20200221' # 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/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 713a79d9c..3cc360c45 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1beta1 VERSION = 'V1beta1' - REVISION = '20200120' + REVISION = '20200221' # 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/dfareporting_v3_4.rb b/generated/google/apis/dfareporting_v3_4.rb index c007d595d..c614bc09c 100644 --- a/generated/google/apis/dfareporting_v3_4.rb +++ b/generated/google/apis/dfareporting_v3_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/doubleclick-advertisers/ module DfareportingV3_4 VERSION = 'V3_4' - REVISION = '20191127' + REVISION = '20200121' # Manage DoubleClick Digital Marketing conversions AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions' diff --git a/generated/google/apis/dfareporting_v3_4/classes.rb b/generated/google/apis/dfareporting_v3_4/classes.rb index 6a5a53aae..b14010404 100644 --- a/generated/google/apis/dfareporting_v3_4/classes.rb +++ b/generated/google/apis/dfareporting_v3_4/classes.rb @@ -5568,12 +5568,6 @@ module Google class DirectorySite include Google::Apis::Core::Hashable - # Whether this directory site is active. - # Corresponds to the JSON property `active` - # @return [Boolean] - attr_accessor :active - alias_method :active?, :active - # ID of this directory site. This is a read-only, auto-generated field. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -5630,7 +5624,6 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] if args.key?(:active) @id = args[:id] if args.key?(:id) @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) @inpage_tag_formats = args[:inpage_tag_formats] if args.key?(:inpage_tag_formats) diff --git a/generated/google/apis/dfareporting_v3_4/representations.rb b/generated/google/apis/dfareporting_v3_4/representations.rb index bab2507e1..553e7455e 100644 --- a/generated/google/apis/dfareporting_v3_4/representations.rb +++ b/generated/google/apis/dfareporting_v3_4/representations.rb @@ -2753,7 +2753,6 @@ module Google class DirectorySite # @private class Representation < Google::Apis::Core::JsonRepresentation - property :active, as: 'active' property :id, :numeric_string => true, as: 'id' property :id_dimension_value, as: 'idDimensionValue', class: Google::Apis::DfareportingV3_4::DimensionValue, decorator: Google::Apis::DfareportingV3_4::DimensionValue::Representation diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 63c629dcb..dc53ef054 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20191210' + REVISION = '20200220' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1/classes.rb index 5e4255989..fa27933bf 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/classes.rb @@ -112,7 +112,7 @@ module Google attr_accessor :filter_type # SDF Version (column names, types, order) in which the entities will be - # returned. Default to 3.1. + # returned. Default to 5. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version diff --git a/generated/google/apis/doubleclickbidmanager_v1_1.rb b/generated/google/apis/doubleclickbidmanager_v1_1.rb index 398b38ac3..34b122475 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1_1 VERSION = 'V1_1' - REVISION = '20200124' + REVISION = '20200220' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb index 00e443f70..f6c3956f5 100644 --- a/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb @@ -112,7 +112,7 @@ module Google attr_accessor :filter_type # SDF Version (column names, types, order) in which the entities will be - # returned. Default to 3.1. + # returned. Default to 5. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index a4cf8f028..f8ffa34ca 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20200213' + REVISION = '20200220' # Use Google Fit to see and store your physical activity data AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/service.rb b/generated/google/apis/fitness_v1/service.rb index dc65d7f8c..3e4b856ea 100644 --- a/generated/google/apis/fitness_v1/service.rb +++ b/generated/google/apis/fitness_v1/service.rb @@ -51,6 +51,8 @@ module Google @batch_path = 'batch/fitness/v1' end + # Creates a new data source that is unique across all data sources belonging to + # this user. # A data source is a unique source of sensor data. Data sources can expose raw # data coming from hardware sensors on local or companion devices. They can also # expose derived data, created by transforming or merging other data sources. @@ -61,15 +63,17 @@ module Google # data source identifier. Not all changes to data source affect the data stream # ID, so that data collected by updated versions of the same application/device # can still be considered to belong to the same data source. - # Data sources are addressed using a string generated by the server, based on - # the contents of the source being created. - # Creates a new data source that is unique across all data sources belonging to - # this user. The dataStreamId field should be excluded. This will be - # automatically generated by the server with the correct format. If a - # dataStreamId is included, it must match the format that the server would - # generate. This format is a combination of some fields from the data source, - # and has a specific order. If it doesn't match, the request will fail with an - # error. + # Data sources are identified using a string generated by the server, based on + # the contents of the source being created. The dataStreamId field should not be + # set when invoking this method. It will be automatically generated by the + # server with the correct format. If a dataStreamId is set, it must match the + # format that the server would generate. This format is a combination of some + # fields from the data source, and has a specific order. If it doesn't match, + # the request will fail with an error. + # Specifying a DataType which is not a known type (beginning with "com.google.") + # will create a DataSource with a custom data type. Custom data types are only + # readable by the application that created them. Custom data types are + # deprecated; use standard data types instead. # In addition to the data source fields included in the data source ID, the # developer project number that is authenticated when creating the data source # is included. This developer project number is obfuscated when read by any diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 743b7dbea..f0fa967fe 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20200207' + REVISION = '20200222' # 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/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 58c2f6610..fc1e1f69e 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -658,13 +658,11 @@ module Google # @return [String] attr_accessor :state - # Represents input parameters for a training job. When using the - # gcloud command to submit your training job, you can specify - # the input parameters as command-line arguments and/or in a YAML configuration - # file referenced from the --config command-line argument. For - # details, see the guide to - # submitting a training - # job. + # Represents input parameters for a training job. When using the gcloud command + # to submit your training job, you can specify the input parameters as + # command-line arguments and/or in a YAML configuration file referenced from + # the --config command-line argument. For details, see the guide to [submitting + # a training job](/ai-platform/training/docs/training-jobs). # Corresponds to the JSON property `trainingInput` # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput] attr_accessor :training_input @@ -1458,13 +1456,11 @@ module Google end end - # Represents input parameters for a training job. When using the - # gcloud command to submit your training job, you can specify - # the input parameters as command-line arguments and/or in a YAML configuration - # file referenced from the --config command-line argument. For - # details, see the guide to - # submitting a training - # job. + # Represents input parameters for a training job. When using the gcloud command + # to submit your training job, you can specify the input parameters as + # command-line arguments and/or in a YAML configuration file referenced from + # the --config command-line argument. For details, see the guide to [submitting + # a training job](/ai-platform/training/docs/training-jobs). class GoogleCloudMlV1TrainingInput include Google::Apis::Core::Hashable @@ -1580,40 +1576,32 @@ module Google # @return [String] attr_accessor :python_module - # Optional. The version of Python used in training. If not set, the default - # version is '2.7'. Starting [January 13, - # 2020](/ml-engine/docs/release-notes#december_10_2019), this field is - # required. + # Optional. The version of Python used in training. You must either specify + # this field or specify `masterConfig.imageUri`. # The following Python versions are available: # * Python '3.7' is available when `runtime_version` is set to '1.15' or # later. # * Python '3.5' is available when `runtime_version` is set to a version # from '1.4' to '1.14'. # * Python '2.7' is available when `runtime_version` is set to '1.15' or - # earlier. (Runtime versions released [after January 1, - # 2020](/ml-engine/docs/release-notes#december_10_2019) do not support - # Python 2.7.) + # earlier. # Read more about the Python versions available for [each runtime # version](/ml-engine/docs/runtime-version-list). # Corresponds to the JSON property `pythonVersion` # @return [String] attr_accessor :python_version - # Required. The Google Compute Engine region to run the training job in. - # See the available regions - # for AI Platform services. + # Required. The region to run the training job in. See the [available + # regions](/ai-platform/training/docs/regions) for AI Platform Training. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region - # Optional. The AI Platform runtime version to use for training. If not - # set, AI Platform uses the default stable version, 1.0. Starting [January - # 13, 2020](/ml-engine/docs/release-notes#december_10_2019), this field is - # required. - # For more information, see the - # runtime version list - # and - # how to manage runtime versions. + # Optional. The AI Platform runtime version to use for training. You must + # either specify this field or specify `masterConfig.imageUri`. + # For more information, see the [runtime version + # list](/ai-platform/training/docs/runtime-version-list) and learn [how to + # manage runtime versions](/ai-platform/training/docs/versioning). # Corresponds to the JSON property `runtimeVersion` # @return [String] attr_accessor :runtime_version @@ -1973,19 +1961,14 @@ module Google # @return [String] attr_accessor :prediction_class - # Optional. The version of Python used in prediction. If not set, the default - # version is '2.7'. Starting [January 13, - # 2020](/ml-engine/docs/release-notes#december_10_2019), this field is - # required. + # Required. The version of Python used in prediction. # The following Python versions are available: # * Python '3.7' is available when `runtime_version` is set to '1.15' or # later. # * Python '3.5' is available when `runtime_version` is set to a version # from '1.4' to '1.14'. # * Python '2.7' is available when `runtime_version` is set to '1.15' or - # earlier. (Runtime versions released [after January 1, - # 2020](/ml-engine/docs/release-notes#december_10_2019) do not support - # Python 2.7.) + # earlier. # Read more about the Python versions available for [each runtime # version](/ml-engine/docs/runtime-version-list). # Corresponds to the JSON property `pythonVersion` @@ -2007,10 +1990,7 @@ module Google # @return [Google::Apis::MlV1::GoogleCloudMlV1RequestLoggingConfig] attr_accessor :request_logging_config - # Optional. The AI Platform runtime version to use for this deployment. - # If not set, AI Platform uses the default stable version, 1.0. Starting - # [January 13, 2020](/ml-engine/docs/release-notes#december_10_2019), this - # field is required. + # Required. The AI Platform runtime version to use for this deployment. # For more information, see the # [runtime version list](/ml-engine/docs/runtime-version-list) and # [how to manage runtime versions](/ml-engine/docs/versioning). diff --git a/generated/google/apis/remotebuildexecution_v1.rb b/generated/google/apis/remotebuildexecution_v1.rb index 60c2a71cc..9fd225f28 100644 --- a/generated/google/apis/remotebuildexecution_v1.rb +++ b/generated/google/apis/remotebuildexecution_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1 VERSION = 'V1' - REVISION = '20200218' + REVISION = '20200225' # 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/remotebuildexecution_v1alpha.rb b/generated/google/apis/remotebuildexecution_v1alpha.rb index 4d4f9647c..bf9706d38 100644 --- a/generated/google/apis/remotebuildexecution_v1alpha.rb +++ b/generated/google/apis/remotebuildexecution_v1alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV1alpha VERSION = 'V1alpha' - REVISION = '20200218' + REVISION = '20200225' # 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/remotebuildexecution_v2.rb b/generated/google/apis/remotebuildexecution_v2.rb index f32bd3dcb..1c1a837f9 100644 --- a/generated/google/apis/remotebuildexecution_v2.rb +++ b/generated/google/apis/remotebuildexecution_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/remote-build-execution/docs/ module RemotebuildexecutionV2 VERSION = 'V2' - REVISION = '20200218' + REVISION = '20200225' # 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/run_v1.rb b/generated/google/apis/run_v1.rb index aa2a0fa35..21be5e220 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20200130' + REVISION = '20200219' # 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/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index 13e2f56d4..78f084bc9 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -2660,6 +2660,54 @@ module Google end end + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # Secret holds secret data of a certain type. The total bytes of the values in + # the Data field must be less than MaxSecretSize bytes. + class Secret + include Google::Apis::Core::Hashable + + # Data contains the secret data. Each key must consist of alphanumeric + # characters, '-', '_' or '.'. The serialized form of the secret data is a + # base64 encoded string, representing the arbitrary (possibly non-string) + # data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + # Corresponds to the JSON property `data` + # @return [Hash] + attr_accessor :data + + # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all + # persisted resources must have, which includes all objects users must create. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1::ObjectMeta] + attr_accessor :metadata + + # stringData allows specifying non-binary secret data in string form. + # It is provided as a write-only convenience method. + # All keys and values are merged into the data field on write, overwriting + # any existing values. It is never output when reading from the API. + # +k8s:conversion-gen=false + # Corresponds to the JSON property `stringData` + # @return [Hash] + attr_accessor :string_data + + # Used to facilitate programmatic handling of secret data. + # 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) + @data = args[:data] if args.key?(:data) + @metadata = args[:metadata] if args.key?(:metadata) + @string_data = args[:string_data] if args.key?(:string_data) + @type = args[:type] if args.key?(:type) + end + end + # Cloud Run fully managed: not supported # Cloud Run for Anthos: supported # SecretEnvSource selects a Secret to populate the environment diff --git a/generated/google/apis/run_v1/representations.rb b/generated/google/apis/run_v1/representations.rb index cd73f9c0f..7fd527dfd 100644 --- a/generated/google/apis/run_v1/representations.rb +++ b/generated/google/apis/run_v1/representations.rb @@ -322,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Secret + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecretEnvSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -985,6 +991,17 @@ module Google end end + class Secret + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :data, as: 'data' + property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation + + hash :string_data, as: 'stringData' + property :type, as: 'type' + end + end + class SecretEnvSource # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index c6cc4780f..d91aa2bf4 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -48,6 +48,110 @@ module Google @batch_path = 'batch' end + # Creates a new secret. + # @param [String] parent + # Required. The project ID or project number in which this secret should + # be created. + # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_api_v1_namespace_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'api/v1/{+parent}/secrets', options) + command.request_representation = Google::Apis::RunV1::Secret::Representation + command.request_object = secret_object + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + 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 + + # Rpc to get information about a secret. + # @param [String] name + # Required. The name of the secret being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_api_v1_namespace_secret(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'api/v1/{+name}', options) + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a secret. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the secret being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @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 replace_api_v1_namespace_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'api/v1/{+name}', options) + command.request_representation = Google::Apis::RunV1::Secret::Representation + command.request_object = secret_object + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # List authorized domains. # @param [String] parent # Name of the parent Application resource. Example: `apps/myapp`. @@ -1336,6 +1440,110 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new secret. + # @param [String] parent + # Required. The project ID or project number in which this secret should + # be created. + # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_secret(parent, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/secrets', options) + command.request_representation = Google::Apis::RunV1::Secret::Representation + command.request_object = secret_object + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + 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 + + # Rpc to get information about a secret. + # @param [String] name + # Required. The name of the secret being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_secret(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a secret. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the secret being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1::Secret] secret_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::RunV1::Secret] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1::Secret] + # + # @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 replace_project_location_secret_secret(name, secret_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::RunV1::Secret::Representation + command.request_object = secret_object + command.response_representation = Google::Apis::RunV1::Secret::Representation + command.response_class = Google::Apis::RunV1::Secret + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Create a service. # @param [String] parent # The namespace in which the service should be created. diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 3bc85b0f3..e3b6d4301 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200130' + REVISION = '20200219' # 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/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 93a31f659..459ce4ade 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -635,6 +635,319 @@ module Google end end + # The CloudSchedulerSource resource. + class CloudSchedulerSource + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The kind of resource, in this case "CloudSchedulerSource". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ObjectMeta is metadata that all persisted resources must have, which includes + # all objects users must create. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ObjectMeta] + attr_accessor :metadata + + # The desired state of the CloudSchedulerSource. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec] + attr_accessor :spec + + # CloudSchedulerSourceStatus represents the current state of a + # CloudSchedulerSource. + # Corresponds to the JSON property `status` + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @spec = args[:spec] if args.key?(:spec) + @status = args[:status] if args.key?(:status) + end + end + + # The desired state of the CloudSchedulerSource. + class CloudSchedulerSourceSpec + include Google::Apis::Core::Hashable + + # CloudEventOverrides defines arguments for a Source that control the output + # format of the CloudEvents produced by the Source. + # Corresponds to the JSON property `ceOverrides` + # @return [Google::Apis::RunV1alpha1::CloudEventOverrides] + attr_accessor :ce_overrides + + # Data to send in the payload of the Event. + # Corresponds to the JSON property `data` + # @return [String] + attr_accessor :data + + # Location to create the Scheduler job in. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Project is the ID of the Google Cloud Project that the CloudPubSubSource + # Topic exists in. If omitted, defaults to same as the cluster. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `pubsubSecret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :pubsub_secret + + # Schedule in cron format, for example: "* * * * *" would be run + # every minute. + # Corresponds to the JSON property `schedule` + # @return [String] + attr_accessor :schedule + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `secret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :secret + + # Sink is a reference to an object that will resolve to a domain name or a + # URI directly to use as the sink. + # Corresponds to the JSON property `sink` + # @return [Google::Apis::RunV1alpha1::Destination] + attr_accessor :sink + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) + @data = args[:data] if args.key?(:data) + @location = args[:location] if args.key?(:location) + @project = args[:project] if args.key?(:project) + @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) + @schedule = args[:schedule] if args.key?(:schedule) + @secret = args[:secret] if args.key?(:secret) + @sink = args[:sink] if args.key?(:sink) + end + end + + # CloudSchedulerSourceStatus represents the current state of a + # CloudSchedulerSource. + class CloudSchedulerSourceStatus + include Google::Apis::Core::Hashable + + # Array of observed CloudSchedulerSourceConditions, indicating the current + # state of the CloudSchedulerSource. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # ObservedGeneration is the 'Generation' of the CloudSchedulerSource that + # was last processed by the controller. + # Corresponds to the JSON property `observedGeneration` + # @return [Fixnum] + attr_accessor :observed_generation + + # SinkURI is the current active sink URI that has been configured for the + # Source. + # Corresponds to the JSON property `sinkUri` + # @return [String] + attr_accessor :sink_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conditions = args[:conditions] if args.key?(:conditions) + @observed_generation = args[:observed_generation] if args.key?(:observed_generation) + @sink_uri = args[:sink_uri] if args.key?(:sink_uri) + end + end + + # The CloudStorageSource resource. + class CloudStorageSource + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The kind of resource, in this case "CloudStorageSource". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ObjectMeta is metadata that all persisted resources must have, which includes + # all objects users must create. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ObjectMeta] + attr_accessor :metadata + + # The desired state of the CloudStorageSource. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::RunV1alpha1::CloudStorageSourceSpec] + attr_accessor :spec + + # CloudStorageSourceStatus represents the current state of a + # CloudStorageSource. + # Corresponds to the JSON property `status` + # @return [Google::Apis::RunV1alpha1::CloudStorageSourceStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @spec = args[:spec] if args.key?(:spec) + @status = args[:status] if args.key?(:status) + end + end + + # The desired state of the CloudStorageSource. + class CloudStorageSourceSpec + include Google::Apis::Core::Hashable + + # Bucket to subscribe to. + # Corresponds to the JSON property `bucket` + # @return [String] + attr_accessor :bucket + + # CloudEventOverrides defines arguments for a Source that control the output + # format of the CloudEvents produced by the Source. + # Corresponds to the JSON property `ceOverrides` + # @return [Google::Apis::RunV1alpha1::CloudEventOverrides] + attr_accessor :ce_overrides + + # EventTypes to subscribe to. If unspecified, then subscribe to all events. + # Corresponds to the JSON property `eventTypes` + # @return [Array] + attr_accessor :event_types + + # ObjectNamePrefix limits the notifications to objects with this prefix. + # Corresponds to the JSON property `objectNamePrefix` + # @return [String] + attr_accessor :object_name_prefix + + # PayloadFormat specifies the contents of the message payload. + # See https://cloud.google.com/storage/docs/pubsub-notifications#payload. + # Corresponds to the JSON property `payloadFormat` + # @return [String] + attr_accessor :payload_format + + # Project is the ID of the Google Cloud Project that the PubSub Topic exists + # in. If omitted, defaults to same as the cluster. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `pubsubSecret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :pubsub_secret + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `secret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :secret + + # ServiceAccountName holds the name of the Kubernetes service account + # as which the underlying K8s resources should be run. If unspecified + # this will default to the "default" service account for the namespace + # in which the GCS exists. + # Corresponds to the JSON property `serviceAccountName` + # @return [String] + attr_accessor :service_account_name + + # Sink is a reference to an object that will resolve to a domain name or a + # URI directly to use as the sink. + # Corresponds to the JSON property `sink` + # @return [Google::Apis::RunV1alpha1::Destination] + attr_accessor :sink + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket = args[:bucket] if args.key?(:bucket) + @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) + @event_types = args[:event_types] if args.key?(:event_types) + @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) + @payload_format = args[:payload_format] if args.key?(:payload_format) + @project = args[:project] if args.key?(:project) + @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) + @secret = args[:secret] if args.key?(:secret) + @service_account_name = args[:service_account_name] if args.key?(:service_account_name) + @sink = args[:sink] if args.key?(:sink) + end + end + + # CloudStorageSourceStatus represents the current state of a + # CloudStorageSource. + class CloudStorageSourceStatus + include Google::Apis::Core::Hashable + + # Array of observed CloudStorageSourceConditions, indicating the current + # state of the CloudStorageSource. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # ObservedGeneration is the 'Generation' of the CloudStorageSource that + # was last processed by the controller. + # Corresponds to the JSON property `observedGeneration` + # @return [Fixnum] + attr_accessor :observed_generation + + # SinkURI is the current active sink URI that has been configured for the + # Source. + # Corresponds to the JSON property `sinkUri` + # @return [String] + attr_accessor :sink_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conditions = args[:conditions] if args.key?(:conditions) + @observed_generation = args[:observed_generation] if args.key?(:observed_generation) + @sink_uri = args[:sink_uri] if args.key?(:sink_uri) + end + end + # Condition defines a generic condition for a Resource class Condition include Google::Apis::Core::Hashable @@ -1839,49 +2152,6 @@ module Google end end - # Initializer is information about an initializer that has not yet completed. - class Initializer - include Google::Apis::Core::Hashable - - # name of the process that is responsible for initializing this object. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - end - end - - # Initializers tracks the progress of initialization. - class Initializers - include Google::Apis::Core::Hashable - - # Pending is a list of initializers that must execute in order before this - # object is visible. When the last pending initializer is removed, and no - # failing result is set, the initializers struct will be set to nil and the - # object is considered as initialized and visible to all clients. - # +patchMergeKey=name - # +patchStrategy=merge - # Corresponds to the JSON property `pending` - # @return [Array] - attr_accessor :pending - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @pending = args[:pending] if args.key?(:pending) - end - end - # IntOrString is a type that can hold an int32 or a string. When used in # JSON or YAML marshalling and unmarshalling, it produces or consumes the # inner type. This allows you to have, for example, a JSON field that can @@ -2098,6 +2368,97 @@ module Google end end + # ListCloudSchedulerSourcesResponse is a list of CloudSchedulerSource + # resources. + class ListCloudSchedulerSourcesResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of CloudSchedulerSources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "CloudSchedulerSourceList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListCloudStorageSourcesResponse is a list of CloudStorageSource resources. + class ListCloudStorageSourcesResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of CloudStorageSources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "CloudStorageSourceList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + # ListConfigurationsResponse is a list of Configuration resources. class ListConfigurationsResponse include Google::Apis::Core::Hashable @@ -2399,51 +2760,6 @@ module Google end end - # ListStoragesResponse is a list of Storage resources. - class ListStoragesResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "events.cloud.google.com/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of Storages. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "StorageList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ListMeta] - attr_accessor :metadata - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - # ListTriggersResponse is a list of Trigger resources. class ListTriggersResponse include Google::Apis::Core::Hashable @@ -2668,11 +2984,6 @@ module Google # @return [Fixnum] attr_accessor :generation - # Initializers tracks the progress of initialization. - # Corresponds to the JSON property `initializers` - # @return [Google::Apis::RunV1alpha1::Initializers] - attr_accessor :initializers - # Map of string keys and values that can be used to organize and categorize # (scope and select) objects. May match selectors of replication controllers # and routes. @@ -2758,7 +3069,6 @@ module Google @finalizers = args[:finalizers] if args.key?(:finalizers) @generate_name = args[:generate_name] if args.key?(:generate_name) @generation = args[:generation] if args.key?(:generation) - @initializers = args[:initializers] if args.key?(:initializers) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @namespace = args[:namespace] if args.key?(:namespace) @@ -4439,165 +4749,6 @@ module Google end end - # - class Storage - include Google::Apis::Core::Hashable - - # The API version for this call such as "events.cloud.google.com/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # The kind of resource, in this case "Storage". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ObjectMeta is metadata that all persisted resources must have, which includes - # all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ObjectMeta] - attr_accessor :metadata - - # The desired state of the Storage. - # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1alpha1::StorageSpec] - attr_accessor :spec - - # StorageStatus represents the current state of a Storage. - # Corresponds to the JSON property `status` - # @return [Google::Apis::RunV1alpha1::StorageStatus] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @spec = args[:spec] if args.key?(:spec) - @status = args[:status] if args.key?(:status) - end - end - - # The desired state of the Storage. - class StorageSpec - include Google::Apis::Core::Hashable - - # Bucket to subscribe to. - # Corresponds to the JSON property `bucket` - # @return [String] - attr_accessor :bucket - - # CloudEventOverrides defines arguments for a Source that control the output - # format of the CloudEvents produced by the Source. - # Corresponds to the JSON property `ceOverrides` - # @return [Google::Apis::RunV1alpha1::CloudEventOverrides] - attr_accessor :ce_overrides - - # EventTypes to subscribe to. If unspecified, then subscribe to all events. - # +optional - # Corresponds to the JSON property `eventTypes` - # @return [Array] - attr_accessor :event_types - - # ObjectNamePrefix limits the notifications to objects with this prefix - # +optional - # Corresponds to the JSON property `objectNamePrefix` - # @return [String] - attr_accessor :object_name_prefix - - # PayloadFormat specifies the contents of the message payload. - # See https://cloud.google.com/storage/docs/pubsub-notifications#payload. - # +optional - # Corresponds to the JSON property `payloadFormat` - # @return [String] - attr_accessor :payload_format - - # Project is the ID of the Google Cloud Project that the PubSub Topic exists - # in. If omitted, defaults to same as the cluster. +optional - # Corresponds to the JSON property `project` - # @return [String] - attr_accessor :project - - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `pubsubSecret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :pubsub_secret - - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `secret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :secret - - # ServiceAccountName holds the name of the Kubernetes service account - # as which the underlying K8s resources should be run. If unspecified - # this will default to the "default" service account for the namespace - # in which the GCS exists. - # +optional - # Corresponds to the JSON property `serviceAccountName` - # @return [String] - attr_accessor :service_account_name - - # Sink is a reference to an object that will resolve to a domain name or a - # URI directly to use as the sink. - # Corresponds to the JSON property `sink` - # @return [Google::Apis::RunV1alpha1::Destination] - attr_accessor :sink - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bucket = args[:bucket] if args.key?(:bucket) - @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) - @event_types = args[:event_types] if args.key?(:event_types) - @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) - @payload_format = args[:payload_format] if args.key?(:payload_format) - @project = args[:project] if args.key?(:project) - @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) - @secret = args[:secret] if args.key?(:secret) - @service_account_name = args[:service_account_name] if args.key?(:service_account_name) - @sink = args[:sink] if args.key?(:sink) - end - end - - # StorageStatus represents the current state of a Storage. - class StorageStatus - include Google::Apis::Core::Hashable - - # Array of observed StorageConditions, indicating the current state - # of the Storage. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # ObservedGeneration is the 'Generation' of the Storage that - # was last processed by the controller. - # Corresponds to the JSON property `observedGeneration` - # @return [Fixnum] - attr_accessor :observed_generation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @conditions = args[:conditions] if args.key?(:conditions) - @observed_generation = args[:observed_generation] if args.key?(:observed_generation) - end - end - # TCPSocketAction describes an action based on opening a socket class TcpSocketAction include Google::Apis::Core::Hashable diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index 47c199e0d..f0316162d 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -100,6 +100,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudSchedulerSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudSchedulerSourceSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudSchedulerSourceStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudStorageSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudStorageSourceSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudStorageSourceStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Condition class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,18 +280,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Initializer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Initializers - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class IntOrString class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,6 +316,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListCloudSchedulerSourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCloudStorageSourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListConfigurationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -334,12 +370,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListStoragesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListTriggersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -544,24 +574,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Storage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StorageSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class StorageStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TcpSocketAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -773,6 +785,92 @@ module Google end end + class CloudSchedulerSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation + + property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec, decorator: Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec::Representation + + property :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudSchedulerSourceStatus, decorator: Google::Apis::RunV1alpha1::CloudSchedulerSourceStatus::Representation + + end + end + + class CloudSchedulerSourceSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation + + property :data, as: 'data' + property :location, as: 'location' + property :project, as: 'project' + property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :schedule, as: 'schedule' + property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation + + end + end + + class CloudSchedulerSourceStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation + + property :observed_generation, as: 'observedGeneration' + property :sink_uri, as: 'sinkUri' + end + end + + class CloudStorageSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation + + property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::CloudStorageSourceSpec, decorator: Google::Apis::RunV1alpha1::CloudStorageSourceSpec::Representation + + property :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudStorageSourceStatus, decorator: Google::Apis::RunV1alpha1::CloudStorageSourceStatus::Representation + + end + end + + class CloudStorageSourceSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket, as: 'bucket' + property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation + + collection :event_types, as: 'eventTypes' + property :object_name_prefix, as: 'objectNamePrefix' + property :payload_format, as: 'payloadFormat' + property :project, as: 'project' + property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :service_account_name, as: 'serviceAccountName' + property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation + + end + end + + class CloudStorageSourceStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation + + property :observed_generation, as: 'observedGeneration' + property :sink_uri, as: 'sinkUri' + end + end + class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1056,21 +1154,6 @@ module Google end end - class Initializer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - end - end - - class Initializers - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :pending, as: 'pending', class: Google::Apis::RunV1alpha1::Initializer, decorator: Google::Apis::RunV1alpha1::Initializer::Representation - - end - end - class IntOrString # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1134,6 +1217,32 @@ module Google end end + class ListCloudSchedulerSourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + collection :items, as: 'items', class: Google::Apis::RunV1alpha1::CloudSchedulerSource, decorator: Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListCloudStorageSourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + collection :items, as: 'items', class: Google::Apis::RunV1alpha1::CloudStorageSource, decorator: Google::Apis::RunV1alpha1::CloudStorageSource::Representation + + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation + + collection :unreachable, as: 'unreachable' + end + end + class ListConfigurationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1217,19 +1326,6 @@ module Google end end - class ListStoragesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - collection :items, as: 'items', class: Google::Apis::RunV1alpha1::Storage, decorator: Google::Apis::RunV1alpha1::Storage::Representation - - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - - collection :unreachable, as: 'unreachable' - end - end - class ListTriggersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1272,8 +1368,6 @@ module Google collection :finalizers, as: 'finalizers' property :generate_name, as: 'generateName' property :generation, as: 'generation' - property :initializers, as: 'initializers', class: Google::Apis::RunV1alpha1::Initializers, decorator: Google::Apis::RunV1alpha1::Initializers::Representation - hash :labels, as: 'labels' property :name, as: 'name' property :namespace, as: 'namespace' @@ -1642,49 +1736,6 @@ module Google end end - class Storage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation - - property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::StorageSpec, decorator: Google::Apis::RunV1alpha1::StorageSpec::Representation - - property :status, as: 'status', class: Google::Apis::RunV1alpha1::StorageStatus, decorator: Google::Apis::RunV1alpha1::StorageStatus::Representation - - end - end - - class StorageSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bucket, as: 'bucket' - property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation - - collection :event_types, as: 'eventTypes' - property :object_name_prefix, as: 'objectNamePrefix' - property :payload_format, as: 'payloadFormat' - property :project, as: 'project' - property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - - property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - - property :service_account_name, as: 'serviceAccountName' - property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation - - end - end - - class StorageStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation - - property :observed_generation, as: 'observedGeneration' - end - end - class TcpSocketAction # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index 75f87e221..a2797a1c2 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -414,6 +414,423 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new cloudschedulersource. + # @param [String] parent + # Required. The project ID or project number in which this cloudschedulersource + # should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_namespace_cloudschedulersource(parent, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.request_object = cloud_scheduler_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + 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 + + # Rpc to delete a cloudschedulersource. + # @param [String] name + # Required. The name of the cloudschedulersource being deleted. If needed, + # replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_namespace_cloudschedulersource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudschedulersource. + # @param [String] name + # Required. The name of the cloudschedulersource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_namespace_cloudschedulersource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudschedulersources. + # @param [String] parent + # Required. The project ID or project number from which the + # cloudschedulersources + # should be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_namespace_cloudschedulersources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a cloudschedulersource. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the cloudschedulersource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @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 replace_namespace_cloudschedulersource_cloud_scheduler_source(name, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.request_object = cloud_scheduler_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new cloudstoragesource. + # @param [String] parent + # Required. The project ID or project number in which this cloudstoragesource + # should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_namespace_cloudstoragesource(parent, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.request_object = cloud_storage_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + 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 + + # Rpc to delete a cloudstoragesource. + # @param [String] name + # Required. The name of the cloudstoragesource being deleted. If needed, replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_namespace_cloudstoragesource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudstoragesource. + # @param [String] name + # Required. The name of the cloudstoragesource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_namespace_cloudstoragesource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudstoragesources. + # @param [String] parent + # Required. The project ID or project number from which the cloudstoragesources + # should + # be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_namespace_cloudstoragesources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a cloudstoragesource. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the cloudstoragesource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @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 replace_namespace_cloudstoragesource_cloud_storage_source(name, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.request_object = cloud_storage_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Rpc to get information about a configuration. # @param [String] name # The name of the configuration being retrieved. If needed, replace @@ -1109,210 +1526,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new storage. - # @param [String] parent - # The project ID or project number in which this storage should - # be created. - # @param [Google::Apis::RunV1alpha1::Storage] storage_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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_namespace_storage(parent, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/storages', options) - command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.request_object = storage_object - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - 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 - - # Rpc to delete a storage. - # @param [String] name - # The name of the storage being deleted. If needed, replace - # `namespace_id` with the project ID. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @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::RunV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_namespace_storage(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation - command.response_class = Google::Apis::RunV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a storage. - # @param [String] name - # The name of the storage being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_namespace_storage(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list storages. - # @param [String] parent - # The project ID or project number from which the storages should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListStoragesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListStoragesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_namespace_storages(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/storages', options) - command.response_representation = Google::Apis::RunV1alpha1::ListStoragesResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListStoragesResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to replace a storage. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the storage being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::Storage] storage_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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @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 replace_namespace_storage_storage(name, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.request_object = storage_object - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Creates a new trigger. # @param [String] parent # The project ID or project number in which this trigger should @@ -1883,6 +2096,423 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new cloudschedulersource. + # @param [String] parent + # Required. The project ID or project number in which this cloudschedulersource + # should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_cloudschedulersource(parent, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudschedulersources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.request_object = cloud_scheduler_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + 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 + + # Rpc to delete a cloudschedulersource. + # @param [String] name + # Required. The name of the cloudschedulersource being deleted. If needed, + # replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_cloudschedulersource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudschedulersource. + # @param [String] name + # Required. The name of the cloudschedulersource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_cloudschedulersource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudschedulersources. + # @param [String] parent + # Required. The project ID or project number from which the + # cloudschedulersources + # should be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudSchedulerSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_cloudschedulersources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudschedulersources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudSchedulerSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a cloudschedulersource. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the cloudschedulersource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::CloudSchedulerSource] cloud_scheduler_source_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::RunV1alpha1::CloudSchedulerSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudSchedulerSource] + # + # @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 replace_project_location_cloudschedulersource_cloud_scheduler_source(name, cloud_scheduler_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1alpha1/{+name}', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.request_object = cloud_scheduler_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudSchedulerSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudSchedulerSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new cloudstoragesource. + # @param [String] parent + # Required. The project ID or project number in which this cloudstoragesource + # should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_cloudstoragesource(parent, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudstoragesources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.request_object = cloud_storage_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + 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 + + # Rpc to delete a cloudstoragesource. + # @param [String] name + # Required. The name of the cloudstoragesource being deleted. If needed, replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_cloudstoragesource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudstoragesource. + # @param [String] name + # Required. The name of the cloudstoragesource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_cloudstoragesource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudstoragesources. + # @param [String] parent + # Required. The project ID or project number from which the cloudstoragesources + # should + # be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudStorageSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_cloudstoragesources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudstoragesources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudStorageSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to replace a cloudstoragesource. + # Only the spec and metadata labels and annotations are modifiable. After + # the Update request, Cloud Run will work to make the 'status' + # match the requested 'spec'. + # May provide metadata.resourceVersion to enforce update from last read for + # optimistic concurrency control. + # @param [String] name + # Required. The name of the cloudstoragesource being retrieved. If needed, + # replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::CloudStorageSource] cloud_storage_source_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::RunV1alpha1::CloudStorageSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudStorageSource] + # + # @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 replace_project_location_cloudstoragesource_cloud_storage_source(name, cloud_storage_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1alpha1/{+name}', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.request_object = cloud_storage_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudStorageSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudStorageSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Rpc to get information about a configuration. # @param [String] name # The name of the configuration being retrieved. If needed, replace @@ -2688,210 +3318,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new storage. - # @param [String] parent - # The project ID or project number in which this storage should - # be created. - # @param [Google::Apis::RunV1alpha1::Storage] storage_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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_storage(parent, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+parent}/storages', options) - command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.request_object = storage_object - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - 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 - - # Rpc to delete a storage. - # @param [String] name - # The name of the storage being deleted. If needed, replace - # `namespace_id` with the project ID. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @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::RunV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_storage(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation - command.response_class = Google::Apis::RunV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a storage. - # @param [String] name - # The name of the storage being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_storage(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list storages. - # @param [String] parent - # The project ID or project number from which the storages should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListStoragesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListStoragesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_storages(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+parent}/storages', options) - command.response_representation = Google::Apis::RunV1alpha1::ListStoragesResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListStoragesResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to replace a storage. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the storage being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::Storage] storage_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::RunV1alpha1::Storage] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Storage] - # - # @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 replace_project_location_storage_storage(name, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.request_object = storage_object - command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation - command.response_class = Google::Apis::RunV1alpha1::Storage - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Creates a new trigger. # @param [String] parent # The project ID or project number in which this trigger should diff --git a/generated/google/apis/run_v1beta1.rb b/generated/google/apis/run_v1beta1.rb index 19bb77800..92bef7665 100644 --- a/generated/google/apis/run_v1beta1.rb +++ b/generated/google/apis/run_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1beta1 VERSION = 'V1beta1' - REVISION = '20200110' + REVISION = '20200219' # 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/runtimeconfig_v1.rb b/generated/google/apis/runtimeconfig_v1.rb index 3607b8138..26b2fe7d5 100644 --- a/generated/google/apis/runtimeconfig_v1.rb +++ b/generated/google/apis/runtimeconfig_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1 VERSION = 'V1' - REVISION = '20200211' + REVISION = '20200224' # 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/runtimeconfig_v1beta1.rb b/generated/google/apis/runtimeconfig_v1beta1.rb index adc91aecc..6338715cb 100644 --- a/generated/google/apis/runtimeconfig_v1beta1.rb +++ b/generated/google/apis/runtimeconfig_v1beta1.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/deployment-manager/runtime-configurator/ module RuntimeconfigV1beta1 VERSION = 'V1beta1' - REVISION = '20200211' + REVISION = '20200224' # 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/youtube_v3.rb b/generated/google/apis/youtube_v3.rb index ad653973a..324c78666 100644 --- a/generated/google/apis/youtube_v3.rb +++ b/generated/google/apis/youtube_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/youtube/v3 module YoutubeV3 VERSION = 'V3' - REVISION = '20200109' + REVISION = '20200213' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index 78ea4ba1b..fdf00cd1c 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -3668,7 +3668,11 @@ module Google # @return [String] attr_accessor :latency_preference - # + # The mesh for projecting the video if projection is mesh. The mesh value must + # be a UTF-8 string containing the base-64 encoding of 3D mesh data that follows + # the Spherical Video V2 RFC specification for an mshp box, excluding the box + # size and type but including the following four reserved zero bytes for the + # version and flags. # Corresponds to the JSON property `mesh` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -5363,51 +5367,33 @@ module Google class MembershipsDetails include Google::Apis::Core::Hashable - # All levels that the user has access to. This includes the currently active - # level and all other levels that are included because of a higher purchase. + # Ids of all levels that the user has access to. This includes the currently + # active level and all other levels that are included because of a higher + # purchase. # Corresponds to the JSON property `accessibleLevels` # @return [Array] attr_accessor :accessible_levels - # The highest level that the user has access to at the moment. + # Id of the highest level that the user has access to at the moment. # Corresponds to the JSON property `highestAccessibleLevel` # @return [String] attr_accessor :highest_accessible_level - # Display name for the highest level that the user has access to at the moment. + # Display name of the highest level that the user has access to at the moment. # Corresponds to the JSON property `highestAccessibleLevelDisplayName` # @return [String] attr_accessor :highest_accessible_level_display_name - # The date and time when the user became a continuous member across all levels. - # Corresponds to the JSON property `memberSince` - # @return [String] - attr_accessor :member_since + # Data about memberships duration without taking into consideration pricing + # levels. + # Corresponds to the JSON property `membershipsDuration` + # @return [Google::Apis::YoutubeV3::MembershipsDuration] + attr_accessor :memberships_duration - # The date and time when the user started to continuously have access to the - # currently highest level. - # Corresponds to the JSON property `memberSinceCurrentLevel` - # @return [String] - attr_accessor :member_since_current_level - - # The cumulative time the user has been a member across all levels in complete - # months (the time is rounded down to the nearest integer). - # Corresponds to the JSON property `memberTotalDuration` - # @return [Fixnum] - attr_accessor :member_total_duration - - # The cumulative time the user has had access to the currently highest level in - # complete months (the time is rounded down to the nearest integer). - # Corresponds to the JSON property `memberTotalDurationCurrentLevel` - # @return [Fixnum] - attr_accessor :member_total_duration_current_level - - # The highest level that the user has access to at the moment. DEPRECATED - - # highest_accessible_level should be used instead. This will be removed after we - # make sure there are no 3rd parties relying on it. - # Corresponds to the JSON property `purchasedLevel` - # @return [String] - attr_accessor :purchased_level + # Data about memberships duration on particular pricing levels. + # Corresponds to the JSON property `membershipsDurationAtLevels` + # @return [Array] + attr_accessor :memberships_duration_at_levels def initialize(**args) update!(**args) @@ -5418,11 +5404,66 @@ module Google @accessible_levels = args[:accessible_levels] if args.key?(:accessible_levels) @highest_accessible_level = args[:highest_accessible_level] if args.key?(:highest_accessible_level) @highest_accessible_level_display_name = args[:highest_accessible_level_display_name] if args.key?(:highest_accessible_level_display_name) + @memberships_duration = args[:memberships_duration] if args.key?(:memberships_duration) + @memberships_duration_at_levels = args[:memberships_duration_at_levels] if args.key?(:memberships_duration_at_levels) + end + end + + # + class MembershipsDuration + include Google::Apis::Core::Hashable + + # The date and time when the user became a continuous member across all levels. + # Corresponds to the JSON property `memberSince` + # @return [String] + attr_accessor :member_since + + # The cumulative time the user has been a member across all levels in complete + # months (the time is rounded down to the nearest integer). + # Corresponds to the JSON property `memberTotalDurationMonths` + # @return [Fixnum] + attr_accessor :member_total_duration_months + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) @member_since = args[:member_since] if args.key?(:member_since) - @member_since_current_level = args[:member_since_current_level] if args.key?(:member_since_current_level) - @member_total_duration = args[:member_total_duration] if args.key?(:member_total_duration) - @member_total_duration_current_level = args[:member_total_duration_current_level] if args.key?(:member_total_duration_current_level) - @purchased_level = args[:purchased_level] if args.key?(:purchased_level) + @member_total_duration_months = args[:member_total_duration_months] if args.key?(:member_total_duration_months) + end + end + + # + class MembershipsDurationAtLevel + include Google::Apis::Core::Hashable + + # Pricing level id. + # Corresponds to the JSON property `level` + # @return [String] + attr_accessor :level + + # The date and time when the user became a continuous member for the given level. + # Corresponds to the JSON property `memberSince` + # @return [String] + attr_accessor :member_since + + # The cumulative time the user has been a member for the given level in complete + # months (the time is rounded down to the nearest integer). + # Corresponds to the JSON property `memberTotalDurationMonths` + # @return [Fixnum] + attr_accessor :member_total_duration_months + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @level = args[:level] if args.key?(:level) + @member_since = args[:member_since] if args.key?(:member_since) + @member_total_duration_months = args[:member_total_duration_months] if args.key?(:member_total_duration_months) end end @@ -8739,9 +8780,7 @@ module Google # @return [String] attr_accessor :rejection_reason - # Allows clients to set the Crosswalk self_declared state for a Video. This maps - # to VAPI.Video.creator_flags.is_crosswalk_self_declared() and VAPI.Video. - # creator_flags.is_not_crosswalk_self_declared(). + # # Corresponds to the JSON property `selfDeclaredMadeForKids` # @return [Boolean] attr_accessor :self_declared_made_for_kids diff --git a/generated/google/apis/youtube_v3/representations.rb b/generated/google/apis/youtube_v3/representations.rb index 9fcd79655..7815df96f 100644 --- a/generated/google/apis/youtube_v3/representations.rb +++ b/generated/google/apis/youtube_v3/representations.rb @@ -676,6 +676,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MembershipsDuration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MembershipsDurationAtLevel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MembershipsLevel class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2530,11 +2542,27 @@ module Google collection :accessible_levels, as: 'accessibleLevels' property :highest_accessible_level, as: 'highestAccessibleLevel' property :highest_accessible_level_display_name, as: 'highestAccessibleLevelDisplayName' + property :memberships_duration, as: 'membershipsDuration', class: Google::Apis::YoutubeV3::MembershipsDuration, decorator: Google::Apis::YoutubeV3::MembershipsDuration::Representation + + collection :memberships_duration_at_levels, as: 'membershipsDurationAtLevels', class: Google::Apis::YoutubeV3::MembershipsDurationAtLevel, decorator: Google::Apis::YoutubeV3::MembershipsDurationAtLevel::Representation + + end + end + + class MembershipsDuration + # @private + class Representation < Google::Apis::Core::JsonRepresentation property :member_since, as: 'memberSince' - property :member_since_current_level, as: 'memberSinceCurrentLevel' - property :member_total_duration, as: 'memberTotalDuration' - property :member_total_duration_current_level, as: 'memberTotalDurationCurrentLevel' - property :purchased_level, as: 'purchasedLevel' + property :member_total_duration_months, as: 'memberTotalDurationMonths' + end + end + + class MembershipsDurationAtLevel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :level, as: 'level' + property :member_since, as: 'memberSince' + property :member_total_duration_months, as: 'memberTotalDurationMonths' end end