Regenerate APIs

This commit is contained in:
Steve Bazyl 2016-01-29 14:32:46 -08:00
parent ed31a3bb64
commit d65a2edf0c
139 changed files with 26917 additions and 13763 deletions

View File

@ -2,6 +2,9 @@
"/adexchangebuyer:v1.3/PerformanceReport/latency50thPercentile": latency_50th_percentile
"/adexchangebuyer:v1.3/PerformanceReport/latency85thPercentile": latency_85th_percentile
"/adexchangebuyer:v1.3/PerformanceReport/latency95thPercentile": latency_95th_percentile
"/adexchangebuyer:v1.4/PerformanceReport/latency50thPercentile": latency_50th_percentile
"/adexchangebuyer:v1.4/PerformanceReport/latency85thPercentile": latency_85th_percentile
"/adexchangebuyer:v1.4/PerformanceReport/latency95thPercentile": latency_95th_percentile
"/adexchangeseller:v2.0/adexchangeseller.accounts.adclients.list": list_account_ad_clients
"/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.get": get_account_custom_channel
"/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.list": list_account_custom_channels
@ -343,6 +346,8 @@
"/civicinfo:v2/civicinfo.elections.voterInfoQuery": query_voter_info
"/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress": representative_info_by_address
"/civicinfo:v2/civicinfo.representatives.representativeInfoByDivision": representative_info_by_division
"/cloudlatencytest:v2/cloudlatencytest.statscollection.updateaggregatedstats": update_aggregated_stats
"/cloudlatencytest:v2/cloudlatencytest.statscollection.updatestats": update_stats
"/compute:v1/DiskMoveRequest": move_disk_request
"/compute:beta/InstanceMoveRequest": move_instance_request
"/compute:beta/TargetPoolsAddHealthCheckRequest": add_target_pools_health_check_request
@ -887,6 +892,21 @@
"/logging:v1beta3/logging.projects.logs.sinks.list": list_log_sinks
"/logging:v1beta3/logging.projects.logs.sinks.update": update_log_sink
"/logging:v1beta3/logging.projects.logs.entries.write": write_log_entries
"/logging:v2beta1/logging.projects.logServices.indexes.list": list_log_service_indexes
"/logging:v2beta1/logging.projects.logServices.list": list_log_services
"/logging:v2beta1/logging.projects.logServices.sinks.create": create_log_service_sink
"/logging:v2beta1/logging.projects.logServices.sinks.delete": delete_log_service_sink
"/logging:v2beta1/logging.projects.logServices.sinks.get": get_log_service_sink
"/logging:v2beta1/logging.projects.logServices.sinks.list": list_log_service_sinks
"/logging:v2beta1/logging.projects.logServices.sinks.update": update_log_service_sink
"/logging:v2beta1/logging.projects.logs.delete": delete_log
"/logging:v2beta1/logging.projects.logs.list": list_logs
"/logging:v2beta1/logging.projects.logs.sinks.create": create_log_sink
"/logging:v2beta1/logging.projects.logs.sinks.delete": delete_log_sink
"/logging:v2beta1/logging.projects.logs.sinks.get": get_log_sink
"/logging:v2beta1/logging.projects.logs.sinks.list": list_log_sinks
"/logging:v2beta1/logging.projects.logs.sinks.update": update_log_sink
"/logging:v2beta1/logging.projects.logs.entries.write": write_log_entries
"/manager:v1beta2/DeploymentsListResponse": list_deployments_response
"/manager:v1beta2/TemplatesListResponse": list_templates_response
"/mapsengine:v1/AssetsListResponse": list_assets_response

File diff suppressed because it is too large Load Diff

View File

@ -77,14 +77,14 @@ module Google
# Update properties of this object
def update!(**args)
@bidder_location = args[:bidder_location] unless args[:bidder_location].nil?
@cookie_matching_nid = args[:cookie_matching_nid] unless args[:cookie_matching_nid].nil?
@cookie_matching_url = args[:cookie_matching_url] unless args[:cookie_matching_url].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@maximum_active_creatives = args[:maximum_active_creatives] unless args[:maximum_active_creatives].nil?
@maximum_total_qps = args[:maximum_total_qps] unless args[:maximum_total_qps].nil?
@number_active_creatives = args[:number_active_creatives] unless args[:number_active_creatives].nil?
@bidder_location = args[:bidder_location] if args.key?(:bidder_location)
@cookie_matching_nid = args[:cookie_matching_nid] if args.key?(:cookie_matching_nid)
@cookie_matching_url = args[:cookie_matching_url] if args.key?(:cookie_matching_url)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@maximum_active_creatives = args[:maximum_active_creatives] if args.key?(:maximum_active_creatives)
@maximum_total_qps = args[:maximum_total_qps] if args.key?(:maximum_total_qps)
@number_active_creatives = args[:number_active_creatives] if args.key?(:number_active_creatives)
end
#
@ -118,9 +118,9 @@ module Google
# Update properties of this object
def update!(**args)
@maximum_qps = args[:maximum_qps] unless args[:maximum_qps].nil?
@region = args[:region] unless args[:region].nil?
@url = args[:url] unless args[:url].nil?
@maximum_qps = args[:maximum_qps] if args.key?(:maximum_qps)
@region = args[:region] if args.key?(:region)
@url = args[:url] if args.key?(:url)
end
end
end
@ -146,8 +146,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -183,10 +183,10 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] unless args[:account_id].nil?
@account_name = args[:account_name] unless args[:account_name].nil?
@billing_id = args[:billing_id] unless args[:billing_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@account_id = args[:account_id] if args.key?(:account_id)
@account_name = args[:account_name] if args.key?(:account_name)
@billing_id = args[:billing_id] if args.key?(:billing_id)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -211,8 +211,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -258,12 +258,12 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] unless args[:account_id].nil?
@billing_id = args[:billing_id] unless args[:billing_id].nil?
@budget_amount = args[:budget_amount] unless args[:budget_amount].nil?
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@account_id = args[:account_id] if args.key?(:account_id)
@billing_id = args[:billing_id] if args.key?(:billing_id)
@budget_amount = args[:budget_amount] if args.key?(:budget_amount)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -410,30 +410,30 @@ module Google
# Update properties of this object
def update!(**args)
@html_snippet = args[:html_snippet] unless args[:html_snippet].nil?
@account_id = args[:account_id] unless args[:account_id].nil?
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
@agency_id = args[:agency_id] unless args[:agency_id].nil?
@api_upload_timestamp = args[:api_upload_timestamp] unless args[:api_upload_timestamp].nil?
@attribute = args[:attribute] unless args[:attribute].nil?
@buyer_creative_id = args[:buyer_creative_id] unless args[:buyer_creative_id].nil?
@click_through_url = args[:click_through_url] unless args[:click_through_url].nil?
@corrections = args[:corrections] unless args[:corrections].nil?
@disapproval_reasons = args[:disapproval_reasons] unless args[:disapproval_reasons].nil?
@filtering_reasons = args[:filtering_reasons] unless args[:filtering_reasons].nil?
@height = args[:height] unless args[:height].nil?
@impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
@kind = args[:kind] unless args[:kind].nil?
@native_ad = args[:native_ad] unless args[:native_ad].nil?
@product_categories = args[:product_categories] unless args[:product_categories].nil?
@restricted_categories = args[:restricted_categories] unless args[:restricted_categories].nil?
@sensitive_categories = args[:sensitive_categories] unless args[:sensitive_categories].nil?
@status = args[:status] unless args[:status].nil?
@vendor_type = args[:vendor_type] unless args[:vendor_type].nil?
@version = args[:version] unless args[:version].nil?
@video_url = args[:video_url] unless args[:video_url].nil?
@width = args[:width] unless args[:width].nil?
@html_snippet = args[:html_snippet] if args.key?(:html_snippet)
@account_id = args[:account_id] if args.key?(:account_id)
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@agency_id = args[:agency_id] if args.key?(:agency_id)
@api_upload_timestamp = args[:api_upload_timestamp] if args.key?(:api_upload_timestamp)
@attribute = args[:attribute] if args.key?(:attribute)
@buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id)
@click_through_url = args[:click_through_url] if args.key?(:click_through_url)
@corrections = args[:corrections] if args.key?(:corrections)
@disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
@filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons)
@height = args[:height] if args.key?(:height)
@impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
@kind = args[:kind] if args.key?(:kind)
@native_ad = args[:native_ad] if args.key?(:native_ad)
@product_categories = args[:product_categories] if args.key?(:product_categories)
@restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
@sensitive_categories = args[:sensitive_categories] if args.key?(:sensitive_categories)
@status = args[:status] if args.key?(:status)
@vendor_type = args[:vendor_type] if args.key?(:vendor_type)
@version = args[:version] if args.key?(:version)
@video_url = args[:video_url] if args.key?(:video_url)
@width = args[:width] if args.key?(:width)
end
#
@ -456,8 +456,8 @@ module Google
# Update properties of this object
def update!(**args)
@details = args[:details] unless args[:details].nil?
@reason = args[:reason] unless args[:reason].nil?
@details = args[:details] if args.key?(:details)
@reason = args[:reason] if args.key?(:reason)
end
end
@ -481,8 +481,8 @@ module Google
# Update properties of this object
def update!(**args)
@details = args[:details] unless args[:details].nil?
@reason = args[:reason] unless args[:reason].nil?
@details = args[:details] if args.key?(:details)
@reason = args[:reason] if args.key?(:reason)
end
end
@ -508,8 +508,8 @@ module Google
# Update properties of this object
def update!(**args)
@date = args[:date] unless args[:date].nil?
@reasons = args[:reasons] unless args[:reasons].nil?
@date = args[:date] if args.key?(:date)
@reasons = args[:reasons] if args.key?(:reasons)
end
#
@ -534,8 +534,8 @@ module Google
# Update properties of this object
def update!(**args)
@filtering_count = args[:filtering_count] unless args[:filtering_count].nil?
@filtering_status = args[:filtering_status] unless args[:filtering_status].nil?
@filtering_count = args[:filtering_count] if args.key?(:filtering_count)
@filtering_status = args[:filtering_status] if args.key?(:filtering_status)
end
end
end
@ -610,18 +610,18 @@ module Google
# Update properties of this object
def update!(**args)
@advertiser = args[:advertiser] unless args[:advertiser].nil?
@app_icon = args[:app_icon] unless args[:app_icon].nil?
@body = args[:body] unless args[:body].nil?
@call_to_action = args[:call_to_action] unless args[:call_to_action].nil?
@click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil?
@headline = args[:headline] unless args[:headline].nil?
@image = args[:image] unless args[:image].nil?
@impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
@logo = args[:logo] unless args[:logo].nil?
@price = args[:price] unless args[:price].nil?
@star_rating = args[:star_rating] unless args[:star_rating].nil?
@store = args[:store] unless args[:store].nil?
@advertiser = args[:advertiser] if args.key?(:advertiser)
@app_icon = args[:app_icon] if args.key?(:app_icon)
@body = args[:body] if args.key?(:body)
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
@headline = args[:headline] if args.key?(:headline)
@image = args[:image] if args.key?(:image)
@impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
@logo = args[:logo] if args.key?(:logo)
@price = args[:price] if args.key?(:price)
@star_rating = args[:star_rating] if args.key?(:star_rating)
@store = args[:store] if args.key?(:store)
end
# The app icon, for app download ads.
@ -649,9 +649,9 @@ module Google
# Update properties of this object
def update!(**args)
@height = args[:height] unless args[:height].nil?
@url = args[:url] unless args[:url].nil?
@width = args[:width] unless args[:width].nil?
@height = args[:height] if args.key?(:height)
@url = args[:url] if args.key?(:url)
@width = args[:width] if args.key?(:width)
end
end
@ -680,9 +680,9 @@ module Google
# Update properties of this object
def update!(**args)
@height = args[:height] unless args[:height].nil?
@url = args[:url] unless args[:url].nil?
@width = args[:width] unless args[:width].nil?
@height = args[:height] if args.key?(:height)
@url = args[:url] if args.key?(:url)
@width = args[:width] if args.key?(:width)
end
end
@ -711,9 +711,9 @@ module Google
# Update properties of this object
def update!(**args)
@height = args[:height] unless args[:height].nil?
@url = args[:url] unless args[:url].nil?
@width = args[:width] unless args[:width].nil?
@height = args[:height] if args.key?(:height)
@url = args[:url] if args.key?(:url)
@width = args[:width] if args.key?(:width)
end
end
end
@ -747,9 +747,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -837,19 +837,19 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] unless args[:account_id].nil?
@advertiser = args[:advertiser] unless args[:advertiser].nil?
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@deal_tier = args[:deal_tier] unless args[:deal_tier].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@private_exchange_min_cpm = args[:private_exchange_min_cpm] unless args[:private_exchange_min_cpm].nil?
@publisher_blocks_overriden = args[:publisher_blocks_overriden] unless args[:publisher_blocks_overriden].nil?
@seller_network = args[:seller_network] unless args[:seller_network].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@account_id = args[:account_id] if args.key?(:account_id)
@advertiser = args[:advertiser] if args.key?(:advertiser)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@deal_tier = args[:deal_tier] if args.key?(:deal_tier)
@end_time = args[:end_time] if args.key?(:end_time)
@fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@private_exchange_min_cpm = args[:private_exchange_min_cpm] if args.key?(:private_exchange_min_cpm)
@publisher_blocks_overriden = args[:publisher_blocks_overriden] if args.key?(:publisher_blocks_overriden)
@seller_network = args[:seller_network] if args.key?(:seller_network)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -875,8 +875,8 @@ module Google
# Update properties of this object
def update!(**args)
@direct_deals = args[:direct_deals] unless args[:direct_deals].nil?
@kind = args[:kind] unless args[:kind].nil?
@direct_deals = args[:direct_deals] if args.key?(:direct_deals)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -1008,28 +1008,28 @@ module Google
# Update properties of this object
def update!(**args)
@bid_rate = args[:bid_rate] unless args[:bid_rate].nil?
@bid_request_rate = args[:bid_request_rate] unless args[:bid_request_rate].nil?
@callout_status_rate = args[:callout_status_rate] unless args[:callout_status_rate].nil?
@cookie_matcher_status_rate = args[:cookie_matcher_status_rate] unless args[:cookie_matcher_status_rate].nil?
@creative_status_rate = args[:creative_status_rate] unless args[:creative_status_rate].nil?
@filtered_bid_rate = args[:filtered_bid_rate] unless args[:filtered_bid_rate].nil?
@hosted_match_status_rate = args[:hosted_match_status_rate] unless args[:hosted_match_status_rate].nil?
@inventory_match_rate = args[:inventory_match_rate] unless args[:inventory_match_rate].nil?
@kind = args[:kind] unless args[:kind].nil?
@latency_50th_percentile = args[:latency_50th_percentile] unless args[:latency_50th_percentile].nil?
@latency_85th_percentile = args[:latency_85th_percentile] unless args[:latency_85th_percentile].nil?
@latency_95th_percentile = args[:latency_95th_percentile] unless args[:latency_95th_percentile].nil?
@no_quota_in_region = args[:no_quota_in_region] unless args[:no_quota_in_region].nil?
@out_of_quota = args[:out_of_quota] unless args[:out_of_quota].nil?
@pixel_match_requests = args[:pixel_match_requests] unless args[:pixel_match_requests].nil?
@pixel_match_responses = args[:pixel_match_responses] unless args[:pixel_match_responses].nil?
@quota_configured_limit = args[:quota_configured_limit] unless args[:quota_configured_limit].nil?
@quota_throttled_limit = args[:quota_throttled_limit] unless args[:quota_throttled_limit].nil?
@region = args[:region] unless args[:region].nil?
@successful_request_rate = args[:successful_request_rate] unless args[:successful_request_rate].nil?
@timestamp = args[:timestamp] unless args[:timestamp].nil?
@unsuccessful_request_rate = args[:unsuccessful_request_rate] unless args[:unsuccessful_request_rate].nil?
@bid_rate = args[:bid_rate] if args.key?(:bid_rate)
@bid_request_rate = args[:bid_request_rate] if args.key?(:bid_request_rate)
@callout_status_rate = args[:callout_status_rate] if args.key?(:callout_status_rate)
@cookie_matcher_status_rate = args[:cookie_matcher_status_rate] if args.key?(:cookie_matcher_status_rate)
@creative_status_rate = args[:creative_status_rate] if args.key?(:creative_status_rate)
@filtered_bid_rate = args[:filtered_bid_rate] if args.key?(:filtered_bid_rate)
@hosted_match_status_rate = args[:hosted_match_status_rate] if args.key?(:hosted_match_status_rate)
@inventory_match_rate = args[:inventory_match_rate] if args.key?(:inventory_match_rate)
@kind = args[:kind] if args.key?(:kind)
@latency_50th_percentile = args[:latency_50th_percentile] if args.key?(:latency_50th_percentile)
@latency_85th_percentile = args[:latency_85th_percentile] if args.key?(:latency_85th_percentile)
@latency_95th_percentile = args[:latency_95th_percentile] if args.key?(:latency_95th_percentile)
@no_quota_in_region = args[:no_quota_in_region] if args.key?(:no_quota_in_region)
@out_of_quota = args[:out_of_quota] if args.key?(:out_of_quota)
@pixel_match_requests = args[:pixel_match_requests] if args.key?(:pixel_match_requests)
@pixel_match_responses = args[:pixel_match_responses] if args.key?(:pixel_match_responses)
@quota_configured_limit = args[:quota_configured_limit] if args.key?(:quota_configured_limit)
@quota_throttled_limit = args[:quota_throttled_limit] if args.key?(:quota_throttled_limit)
@region = args[:region] if args.key?(:region)
@successful_request_rate = args[:successful_request_rate] if args.key?(:successful_request_rate)
@timestamp = args[:timestamp] if args.key?(:timestamp)
@unsuccessful_request_rate = args[:unsuccessful_request_rate] if args.key?(:unsuccessful_request_rate)
end
end
@ -1056,8 +1056,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@performance_report = args[:performance_report] unless args[:performance_report].nil?
@kind = args[:kind] if args.key?(:kind)
@performance_report = args[:performance_report] if args.key?(:performance_report)
end
end
@ -1201,29 +1201,29 @@ module Google
# Update properties of this object
def update!(**args)
@billing_id = args[:billing_id] unless args[:billing_id].nil?
@config_id = args[:config_id] unless args[:config_id].nil?
@config_name = args[:config_name] unless args[:config_name].nil?
@creative_type = args[:creative_type] unless args[:creative_type].nil?
@dimensions = args[:dimensions] unless args[:dimensions].nil?
@excluded_content_labels = args[:excluded_content_labels] unless args[:excluded_content_labels].nil?
@excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] unless args[:excluded_geo_criteria_ids].nil?
@excluded_placements = args[:excluded_placements] unless args[:excluded_placements].nil?
@excluded_user_lists = args[:excluded_user_lists] unless args[:excluded_user_lists].nil?
@excluded_verticals = args[:excluded_verticals] unless args[:excluded_verticals].nil?
@geo_criteria_ids = args[:geo_criteria_ids] unless args[:geo_criteria_ids].nil?
@is_active = args[:is_active] unless args[:is_active].nil?
@kind = args[:kind] unless args[:kind].nil?
@languages = args[:languages] unless args[:languages].nil?
@mobile_carriers = args[:mobile_carriers] unless args[:mobile_carriers].nil?
@mobile_devices = args[:mobile_devices] unless args[:mobile_devices].nil?
@mobile_operating_system_versions = args[:mobile_operating_system_versions] unless args[:mobile_operating_system_versions].nil?
@placements = args[:placements] unless args[:placements].nil?
@platforms = args[:platforms] unless args[:platforms].nil?
@supported_creative_attributes = args[:supported_creative_attributes] unless args[:supported_creative_attributes].nil?
@user_lists = args[:user_lists] unless args[:user_lists].nil?
@vendor_types = args[:vendor_types] unless args[:vendor_types].nil?
@verticals = args[:verticals] unless args[:verticals].nil?
@billing_id = args[:billing_id] if args.key?(:billing_id)
@config_id = args[:config_id] if args.key?(:config_id)
@config_name = args[:config_name] if args.key?(:config_name)
@creative_type = args[:creative_type] if args.key?(:creative_type)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@excluded_content_labels = args[:excluded_content_labels] if args.key?(:excluded_content_labels)
@excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] if args.key?(:excluded_geo_criteria_ids)
@excluded_placements = args[:excluded_placements] if args.key?(:excluded_placements)
@excluded_user_lists = args[:excluded_user_lists] if args.key?(:excluded_user_lists)
@excluded_verticals = args[:excluded_verticals] if args.key?(:excluded_verticals)
@geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids)
@is_active = args[:is_active] if args.key?(:is_active)
@kind = args[:kind] if args.key?(:kind)
@languages = args[:languages] if args.key?(:languages)
@mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers)
@mobile_devices = args[:mobile_devices] if args.key?(:mobile_devices)
@mobile_operating_system_versions = args[:mobile_operating_system_versions] if args.key?(:mobile_operating_system_versions)
@placements = args[:placements] if args.key?(:placements)
@platforms = args[:platforms] if args.key?(:platforms)
@supported_creative_attributes = args[:supported_creative_attributes] if args.key?(:supported_creative_attributes)
@user_lists = args[:user_lists] if args.key?(:user_lists)
@vendor_types = args[:vendor_types] if args.key?(:vendor_types)
@verticals = args[:verticals] if args.key?(:verticals)
end
#
@ -1246,8 +1246,8 @@ module Google
# Update properties of this object
def update!(**args)
@height = args[:height] unless args[:height].nil?
@width = args[:width] unless args[:width].nil?
@height = args[:height] if args.key?(:height)
@width = args[:width] if args.key?(:width)
end
end
@ -1273,8 +1273,8 @@ module Google
# Update properties of this object
def update!(**args)
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
@ -1300,8 +1300,8 @@ module Google
# Update properties of this object
def update!(**args)
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
end
@ -1326,8 +1326,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
end

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/adexchangebuyer_v1_4/service.rb'
require 'google/apis/adexchangebuyer_v1_4/classes.rb'
require 'google/apis/adexchangebuyer_v1_4/representations.rb'
module Google
module Apis
# Ad Exchange Buyer API
#
# Accesses your bidding-account information, submits creatives for validation,
# finds available direct deals, and retrieves performance reports.
#
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20160118'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -47,9 +47,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -84,10 +84,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -129,11 +129,11 @@ module Google
# Update properties of this object
def update!(**args)
@arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_code = args[:product_code] unless args[:product_code].nil?
@supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil?
@arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@product_code = args[:product_code] if args.key?(:product_code)
@supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
end
end
@ -168,10 +168,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -213,11 +213,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@message = args[:message] unless args[:message].nil?
@severity = args[:severity] unless args[:severity].nil?
@type = args[:type] unless args[:type].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@message = args[:message] if args.key?(:message)
@severity = args[:severity] if args.key?(:severity)
@type = args[:type] if args.key?(:type)
end
end
@ -241,8 +241,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -282,11 +282,11 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@targeting_info = args[:targeting_info] unless args[:targeting_info].nil?
@code = args[:code] if args.key?(:code)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@targeting_info = args[:targeting_info] if args.key?(:targeting_info)
end
# The targeting information of this custom channel, if activated.
@ -323,10 +323,10 @@ module Google
# Update properties of this object
def update!(**args)
@ads_appear_on = args[:ads_appear_on] unless args[:ads_appear_on].nil?
@description = args[:description] unless args[:description].nil?
@location = args[:location] unless args[:location].nil?
@site_language = args[:site_language] unless args[:site_language].nil?
@ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on)
@description = args[:description] if args.key?(:description)
@location = args[:location] if args.key?(:location)
@site_language = args[:site_language] if args.key?(:site_language)
end
end
end
@ -362,10 +362,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -389,8 +389,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -450,14 +450,14 @@ module Google
# Update properties of this object
def update!(**args)
@advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
@buyer_network_name = args[:buyer_network_name] unless args[:buyer_network_name].nil?
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@fixed_cpm = args[:fixed_cpm] unless args[:fixed_cpm].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@buyer_network_name = args[:buyer_network_name] if args.key?(:buyer_network_name)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@end_time = args[:end_time] if args.key?(:end_time)
@fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -481,8 +481,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -539,13 +539,13 @@ module Google
# Update properties of this object
def update!(**args)
@averages = args[:averages] unless args[:averages].nil?
@headers = args[:headers] unless args[:headers].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
@total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil?
@totals = args[:totals] unless args[:totals].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@averages = args[:averages] if args.key?(:averages)
@headers = args[:headers] if args.key?(:headers)
@kind = args[:kind] if args.key?(:kind)
@rows = args[:rows] if args.key?(:rows)
@total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows)
@totals = args[:totals] if args.key?(:totals)
@warnings = args[:warnings] if args.key?(:warnings)
end
#
@ -575,9 +575,9 @@ module Google
# Update properties of this object
def update!(**args)
@currency = args[:currency] unless args[:currency].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@currency = args[:currency] if args.key?(:currency)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
end
@ -638,13 +638,13 @@ module Google
# Update properties of this object
def update!(**args)
@compatible_dimensions = args[:compatible_dimensions] unless args[:compatible_dimensions].nil?
@compatible_metrics = args[:compatible_metrics] unless args[:compatible_metrics].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@required_dimensions = args[:required_dimensions] unless args[:required_dimensions].nil?
@required_metrics = args[:required_metrics] unless args[:required_metrics].nil?
@supported_products = args[:supported_products] unless args[:supported_products].nil?
@compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions)
@compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions)
@required_metrics = args[:required_metrics] if args.key?(:required_metrics)
@supported_products = args[:supported_products] if args.key?(:supported_products)
end
end
@ -673,9 +673,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -710,10 +710,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -744,9 +744,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@url_pattern = args[:url_pattern] unless args[:url_pattern].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@url_pattern = args[:url_pattern] if args.key?(:url_pattern)
end
end
@ -781,10 +781,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end

View File

@ -59,11 +59,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@transfer_params = args[:transfer_params] unless args[:transfer_params].nil?
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@transfer_params = args[:transfer_params] if args.key?(:transfer_params)
end
end
@ -93,9 +93,9 @@ module Google
# Update properties of this object
def update!(**args)
@application_id = args[:application_id] unless args[:application_id].nil?
@application_transfer_params = args[:application_transfer_params] unless args[:application_transfer_params].nil?
@application_transfer_status = args[:application_transfer_status] unless args[:application_transfer_status].nil?
@application_id = args[:application_id] if args.key?(:application_id)
@application_transfer_params = args[:application_transfer_params] if args.key?(:application_transfer_params)
@application_transfer_status = args[:application_transfer_status] if args.key?(:application_transfer_status)
end
end
@ -119,8 +119,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
@ -155,10 +155,10 @@ module Google
# Update properties of this object
def update!(**args)
@applications = args[:applications] unless args[:applications].nil?
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@applications = args[:applications] if args.key?(:applications)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -215,14 +215,14 @@ module Google
# Update properties of this object
def update!(**args)
@application_data_transfers = args[:application_data_transfers] unless args[:application_data_transfers].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@new_owner_user_id = args[:new_owner_user_id] unless args[:new_owner_user_id].nil?
@old_owner_user_id = args[:old_owner_user_id] unless args[:old_owner_user_id].nil?
@overall_transfer_status_code = args[:overall_transfer_status_code] unless args[:overall_transfer_status_code].nil?
@request_time = args[:request_time] unless args[:request_time].nil?
@application_data_transfers = args[:application_data_transfers] if args.key?(:application_data_transfers)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@new_owner_user_id = args[:new_owner_user_id] if args.key?(:new_owner_user_id)
@old_owner_user_id = args[:old_owner_user_id] if args.key?(:old_owner_user_id)
@overall_transfer_status_code = args[:overall_transfer_status_code] if args.key?(:overall_transfer_status_code)
@request_time = args[:request_time] if args.key?(:request_time)
end
end
@ -256,10 +256,10 @@ module Google
# Update properties of this object
def update!(**args)
@data_transfers = args[:data_transfers] unless args[:data_transfers].nil?
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@data_transfers = args[:data_transfers] if args.key?(:data_transfers)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -52,10 +52,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -104,13 +104,13 @@ module Google
# Update properties of this object
def update!(**args)
@actor = args[:actor] unless args[:actor].nil?
@etag = args[:etag] unless args[:etag].nil?
@events = args[:events] unless args[:events].nil?
@id = args[:id] unless args[:id].nil?
@ip_address = args[:ip_address] unless args[:ip_address].nil?
@kind = args[:kind] unless args[:kind].nil?
@owner_domain = args[:owner_domain] unless args[:owner_domain].nil?
@actor = args[:actor] if args.key?(:actor)
@etag = args[:etag] if args.key?(:etag)
@events = args[:events] if args.key?(:events)
@id = args[:id] if args.key?(:id)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@kind = args[:kind] if args.key?(:kind)
@owner_domain = args[:owner_domain] if args.key?(:owner_domain)
end
# User doing the action.
@ -143,10 +143,10 @@ module Google
# Update properties of this object
def update!(**args)
@caller_type = args[:caller_type] unless args[:caller_type].nil?
@email = args[:email] unless args[:email].nil?
@key = args[:key] unless args[:key].nil?
@profile_id = args[:profile_id] unless args[:profile_id].nil?
@caller_type = args[:caller_type] if args.key?(:caller_type)
@email = args[:email] if args.key?(:email)
@key = args[:key] if args.key?(:key)
@profile_id = args[:profile_id] if args.key?(:profile_id)
end
end
@ -175,9 +175,9 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@parameters = args[:parameters] unless args[:parameters].nil?
@type = args[:type] unless args[:type].nil?
@name = args[:name] if args.key?(:name)
@parameters = args[:parameters] if args.key?(:parameters)
@type = args[:type] if args.key?(:type)
end
#
@ -221,12 +221,12 @@ module Google
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] unless args[:bool_value].nil?
@int_value = args[:int_value] unless args[:int_value].nil?
@multi_int_value = args[:multi_int_value] unless args[:multi_int_value].nil?
@multi_value = args[:multi_value] unless args[:multi_value].nil?
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@bool_value = args[:bool_value] if args.key?(:bool_value)
@int_value = args[:int_value] if args.key?(:int_value)
@multi_int_value = args[:multi_int_value] if args.key?(:multi_int_value)
@multi_value = args[:multi_value] if args.key?(:multi_value)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
end
@ -261,10 +261,10 @@ module Google
# Update properties of this object
def update!(**args)
@application_name = args[:application_name] unless args[:application_name].nil?
@customer_id = args[:customer_id] unless args[:customer_id].nil?
@time = args[:time] unless args[:time].nil?
@unique_qualifier = args[:unique_qualifier] unless args[:unique_qualifier].nil?
@application_name = args[:application_name] if args.key?(:application_name)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@time = args[:time] if args.key?(:time)
@unique_qualifier = args[:unique_qualifier] if args.key?(:unique_qualifier)
end
end
end
@ -334,16 +334,16 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@params = args[:params] unless args[:params].nil?
@payload = args[:payload] unless args[:payload].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@address = args[:address] if args.key?(:address)
@expiration = args[:expiration] if args.key?(:expiration)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@params = args[:params] if args.key?(:params)
@payload = args[:payload] if args.key?(:payload)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
@ -382,11 +382,11 @@ module Google
# Update properties of this object
def update!(**args)
@date = args[:date] unless args[:date].nil?
@entity = args[:entity] unless args[:entity].nil?
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@parameters = args[:parameters] unless args[:parameters].nil?
@date = args[:date] if args.key?(:date)
@entity = args[:entity] if args.key?(:entity)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@parameters = args[:parameters] if args.key?(:parameters)
end
# Information about the type of the item.
@ -419,10 +419,10 @@ module Google
# Update properties of this object
def update!(**args)
@customer_id = args[:customer_id] unless args[:customer_id].nil?
@profile_id = args[:profile_id] unless args[:profile_id].nil?
@type = args[:type] unless args[:type].nil?
@user_email = args[:user_email] unless args[:user_email].nil?
@customer_id = args[:customer_id] if args.key?(:customer_id)
@profile_id = args[:profile_id] if args.key?(:profile_id)
@type = args[:type] if args.key?(:type)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
@ -467,12 +467,12 @@ module Google
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] unless args[:bool_value].nil?
@datetime_value = args[:datetime_value] unless args[:datetime_value].nil?
@int_value = args[:int_value] unless args[:int_value].nil?
@msg_value = args[:msg_value] unless args[:msg_value].nil?
@name = args[:name] unless args[:name].nil?
@string_value = args[:string_value] unless args[:string_value].nil?
@bool_value = args[:bool_value] if args.key?(:bool_value)
@datetime_value = args[:datetime_value] if args.key?(:datetime_value)
@int_value = args[:int_value] if args.key?(:int_value)
@msg_value = args[:msg_value] if args.key?(:msg_value)
@name = args[:name] if args.key?(:name)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
end
@ -512,11 +512,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@usage_reports = args[:usage_reports] unless args[:usage_reports].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@usage_reports = args[:usage_reports] if args.key?(:usage_reports)
@warnings = args[:warnings] if args.key?(:warnings)
end
#
@ -544,9 +544,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -571,8 +571,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20160112'
REVISION = '20160127'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -68,13 +68,13 @@ module Google
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@premium = args[:premium] unless args[:premium].nil?
@sub_accounts = args[:sub_accounts] unless args[:sub_accounts].nil?
@timezone = args[:timezone] unless args[:timezone].nil?
@creation_time = args[:creation_time] if args.key?(:creation_time)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@premium = args[:premium] if args.key?(:premium)
@sub_accounts = args[:sub_accounts] if args.key?(:sub_accounts)
@timezone = args[:timezone] if args.key?(:timezone)
end
end
@ -109,10 +109,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -160,12 +160,12 @@ module Google
# Update properties of this object
def update!(**args)
@arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil?
@arc_review_mode = args[:arc_review_mode] unless args[:arc_review_mode].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_code = args[:product_code] unless args[:product_code].nil?
@supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil?
@arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
@arc_review_mode = args[:arc_review_mode] if args.key?(:arc_review_mode)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@product_code = args[:product_code] if args.key?(:product_code)
@supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
end
end
@ -200,10 +200,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -227,8 +227,8 @@ module Google
# Update properties of this object
def update!(**args)
@ad_code = args[:ad_code] unless args[:ad_code].nil?
@kind = args[:kind] unless args[:kind].nil?
@ad_code = args[:ad_code] if args.key?(:ad_code)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -264,10 +264,10 @@ module Google
# Update properties of this object
def update!(**args)
@colors = args[:colors] unless args[:colors].nil?
@corners = args[:corners] unless args[:corners].nil?
@font = args[:font] unless args[:font].nil?
@kind = args[:kind] unless args[:kind].nil?
@colors = args[:colors] if args.key?(:colors)
@corners = args[:corners] if args.key?(:corners)
@font = args[:font] if args.key?(:font)
@kind = args[:kind] if args.key?(:kind)
end
# The colors which are included in the style. These are represented as six
@ -307,11 +307,11 @@ module Google
# Update properties of this object
def update!(**args)
@background = args[:background] unless args[:background].nil?
@border = args[:border] unless args[:border].nil?
@text = args[:text] unless args[:text].nil?
@title = args[:title] unless args[:title].nil?
@url = args[:url] unless args[:url].nil?
@background = args[:background] if args.key?(:background)
@border = args[:border] if args.key?(:border)
@text = args[:text] if args.key?(:text)
@title = args[:title] if args.key?(:title)
@url = args[:url] if args.key?(:url)
end
end
@ -335,8 +335,8 @@ module Google
# Update properties of this object
def update!(**args)
@family = args[:family] unless args[:family].nil?
@size = args[:size] unless args[:size].nil?
@family = args[:family] if args.key?(:family)
@size = args[:size] if args.key?(:size)
end
end
end
@ -350,7 +350,8 @@ module Google
# @return [String]
attr_accessor :code
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
# deprecated).
# Corresponds to the JSON property `contentAdsSettings`
# @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings]
attr_accessor :content_ads_settings
@ -360,7 +361,7 @@ module Google
# @return [Google::Apis::AdsenseV1_4::AdStyle]
attr_accessor :custom_style
# Settings specific to feed ads (AFF).
# Settings specific to feed ads (AFF) - deprecated.
# Corresponds to the JSON property `feedAdsSettings`
# @return [Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings]
attr_accessor :feed_ads_settings
@ -376,7 +377,7 @@ module Google
# @return [String]
attr_accessor :kind
# Settings specific to WAP mobile content ads (AFMC).
# Settings specific to WAP mobile content ads (AFMC) - deprecated.
# Corresponds to the JSON property `mobileContentAdsSettings`
# @return [Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings]
attr_accessor :mobile_content_ads_settings
@ -408,19 +409,20 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@content_ads_settings = args[:content_ads_settings] unless args[:content_ads_settings].nil?
@custom_style = args[:custom_style] unless args[:custom_style].nil?
@feed_ads_settings = args[:feed_ads_settings] unless args[:feed_ads_settings].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@mobile_content_ads_settings = args[:mobile_content_ads_settings] unless args[:mobile_content_ads_settings].nil?
@name = args[:name] unless args[:name].nil?
@saved_style_id = args[:saved_style_id] unless args[:saved_style_id].nil?
@status = args[:status] unless args[:status].nil?
@code = args[:code] if args.key?(:code)
@content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings)
@custom_style = args[:custom_style] if args.key?(:custom_style)
@feed_ads_settings = args[:feed_ads_settings] if args.key?(:feed_ads_settings)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings)
@name = args[:name] if args.key?(:name)
@saved_style_id = args[:saved_style_id] if args.key?(:saved_style_id)
@status = args[:status] if args.key?(:status)
end
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
# deprecated).
class ContentAdsSettings
include Google::Apis::Core::Hashable
@ -445,9 +447,9 @@ module Google
# Update properties of this object
def update!(**args)
@backup_option = args[:backup_option] unless args[:backup_option].nil?
@size = args[:size] unless args[:size].nil?
@type = args[:type] unless args[:type].nil?
@backup_option = args[:backup_option] if args.key?(:backup_option)
@size = args[:size] if args.key?(:size)
@type = args[:type] if args.key?(:type)
end
# The backup option to be used in instances where no ad is available.
@ -475,14 +477,14 @@ module Google
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@type = args[:type] unless args[:type].nil?
@url = args[:url] unless args[:url].nil?
@color = args[:color] if args.key?(:color)
@type = args[:type] if args.key?(:type)
@url = args[:url] if args.key?(:url)
end
end
end
# Settings specific to feed ads (AFF).
# Settings specific to feed ads (AFF) - deprecated.
class FeedAdsSettings
include Google::Apis::Core::Hashable
@ -512,14 +514,14 @@ module Google
# Update properties of this object
def update!(**args)
@ad_position = args[:ad_position] unless args[:ad_position].nil?
@frequency = args[:frequency] unless args[:frequency].nil?
@minimum_word_count = args[:minimum_word_count] unless args[:minimum_word_count].nil?
@type = args[:type] unless args[:type].nil?
@ad_position = args[:ad_position] if args.key?(:ad_position)
@frequency = args[:frequency] if args.key?(:frequency)
@minimum_word_count = args[:minimum_word_count] if args.key?(:minimum_word_count)
@type = args[:type] if args.key?(:type)
end
end
# Settings specific to WAP mobile content ads (AFMC).
# Settings specific to WAP mobile content ads (AFMC) - deprecated.
class MobileContentAdsSettings
include Google::Apis::Core::Hashable
@ -549,10 +551,10 @@ module Google
# Update properties of this object
def update!(**args)
@markup_language = args[:markup_language] unless args[:markup_language].nil?
@scripting_language = args[:scripting_language] unless args[:scripting_language].nil?
@size = args[:size] unless args[:size].nil?
@type = args[:type] unless args[:type].nil?
@markup_language = args[:markup_language] if args.key?(:markup_language)
@scripting_language = args[:scripting_language] if args.key?(:scripting_language)
@size = args[:size] if args.key?(:size)
@type = args[:type] if args.key?(:type)
end
end
end
@ -588,10 +590,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -658,15 +660,15 @@ module Google
# Update properties of this object
def update!(**args)
@averages = args[:averages] unless args[:averages].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@headers = args[:headers] unless args[:headers].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil?
@totals = args[:totals] unless args[:totals].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@averages = args[:averages] if args.key?(:averages)
@end_date = args[:end_date] if args.key?(:end_date)
@headers = args[:headers] if args.key?(:headers)
@kind = args[:kind] if args.key?(:kind)
@rows = args[:rows] if args.key?(:rows)
@start_date = args[:start_date] if args.key?(:start_date)
@total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows)
@totals = args[:totals] if args.key?(:totals)
@warnings = args[:warnings] if args.key?(:warnings)
end
#
@ -696,9 +698,9 @@ module Google
# Update properties of this object
def update!(**args)
@currency = args[:currency] unless args[:currency].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@currency = args[:currency] if args.key?(:currency)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
end
@ -747,12 +749,12 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@is_dismissible = args[:is_dismissible] unless args[:is_dismissible].nil?
@kind = args[:kind] unless args[:kind].nil?
@message = args[:message] unless args[:message].nil?
@severity = args[:severity] unless args[:severity].nil?
@type = args[:type] unless args[:type].nil?
@id = args[:id] if args.key?(:id)
@is_dismissible = args[:is_dismissible] if args.key?(:is_dismissible)
@kind = args[:kind] if args.key?(:kind)
@message = args[:message] if args.key?(:message)
@severity = args[:severity] if args.key?(:severity)
@type = args[:type] if args.key?(:type)
end
end
@ -776,8 +778,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -817,11 +819,11 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@targeting_info = args[:targeting_info] unless args[:targeting_info].nil?
@code = args[:code] if args.key?(:code)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@targeting_info = args[:targeting_info] if args.key?(:targeting_info)
end
# The targeting information of this custom channel, if activated.
@ -839,10 +841,10 @@ module Google
attr_accessor :description
# The locations in which ads appear. (Only valid for content and mobile content
# ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT,
# MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER,
# BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are:
# TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
# ads (deprecated)). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER,
# TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT,
# BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile
# content ads (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -858,10 +860,10 @@ module Google
# Update properties of this object
def update!(**args)
@ads_appear_on = args[:ads_appear_on] unless args[:ads_appear_on].nil?
@description = args[:description] unless args[:description].nil?
@location = args[:location] unless args[:location].nil?
@site_language = args[:site_language] unless args[:site_language].nil?
@ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on)
@description = args[:description] if args.key?(:description)
@location = args[:location] if args.key?(:location)
@site_language = args[:site_language] if args.key?(:site_language)
end
end
end
@ -897,10 +899,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -924,8 +926,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -965,11 +967,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@payment_amount = args[:payment_amount] unless args[:payment_amount].nil?
@payment_amount_currency_code = args[:payment_amount_currency_code] unless args[:payment_amount_currency_code].nil?
@payment_date = args[:payment_date] unless args[:payment_date].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@payment_amount = args[:payment_amount] if args.key?(:payment_amount)
@payment_amount_currency_code = args[:payment_amount_currency_code] if args.key?(:payment_amount_currency_code)
@payment_date = args[:payment_date] if args.key?(:payment_date)
end
end
@ -994,8 +996,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -1055,13 +1057,13 @@ module Google
# Update properties of this object
def update!(**args)
@compatible_dimensions = args[:compatible_dimensions] unless args[:compatible_dimensions].nil?
@compatible_metrics = args[:compatible_metrics] unless args[:compatible_metrics].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@required_dimensions = args[:required_dimensions] unless args[:required_dimensions].nil?
@required_metrics = args[:required_metrics] unless args[:required_metrics].nil?
@supported_products = args[:supported_products] unless args[:supported_products].nil?
@compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions)
@compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions)
@required_metrics = args[:required_metrics] if args.key?(:required_metrics)
@supported_products = args[:supported_products] if args.key?(:supported_products)
end
end
@ -1096,10 +1098,10 @@ module Google
# Update properties of this object
def update!(**args)
@ad_style = args[:ad_style] unless args[:ad_style].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@ad_style = args[:ad_style] if args.key?(:ad_style)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -1134,10 +1136,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1166,9 +1168,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -1203,10 +1205,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1237,9 +1239,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@url_pattern = args[:url_pattern] unless args[:url_pattern].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@url_pattern = args[:url_pattern] if args.key?(:url_pattern)
end
end
@ -1274,10 +1276,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20160112'
REVISION = '20160127'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -52,10 +52,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@status = args[:status] unless args[:status].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@status = args[:status] if args.key?(:status)
end
end
@ -84,9 +84,9 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -128,11 +128,11 @@ module Google
# Update properties of this object
def update!(**args)
@arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_code = args[:product_code] unless args[:product_code].nil?
@supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil?
@arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@product_code = args[:product_code] if args.key?(:product_code)
@supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
end
end
@ -167,10 +167,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -194,8 +194,8 @@ module Google
# Update properties of this object
def update!(**args)
@ad_code = args[:ad_code] unless args[:ad_code].nil?
@kind = args[:kind] unless args[:kind].nil?
@ad_code = args[:ad_code] if args.key?(:ad_code)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -231,10 +231,10 @@ module Google
# Update properties of this object
def update!(**args)
@colors = args[:colors] unless args[:colors].nil?
@corners = args[:corners] unless args[:corners].nil?
@font = args[:font] unless args[:font].nil?
@kind = args[:kind] unless args[:kind].nil?
@colors = args[:colors] if args.key?(:colors)
@corners = args[:corners] if args.key?(:corners)
@font = args[:font] if args.key?(:font)
@kind = args[:kind] if args.key?(:kind)
end
# The colors included in the style. These are represented as six hexadecimal
@ -273,11 +273,11 @@ module Google
# Update properties of this object
def update!(**args)
@background = args[:background] unless args[:background].nil?
@border = args[:border] unless args[:border].nil?
@text = args[:text] unless args[:text].nil?
@title = args[:title] unless args[:title].nil?
@url = args[:url] unless args[:url].nil?
@background = args[:background] if args.key?(:background)
@border = args[:border] if args.key?(:border)
@text = args[:text] if args.key?(:text)
@title = args[:title] if args.key?(:title)
@url = args[:url] if args.key?(:url)
end
end
@ -303,8 +303,8 @@ module Google
# Update properties of this object
def update!(**args)
@family = args[:family] unless args[:family].nil?
@size = args[:size] unless args[:size].nil?
@family = args[:family] if args.key?(:family)
@size = args[:size] if args.key?(:size)
end
end
end
@ -318,7 +318,8 @@ module Google
# @return [String]
attr_accessor :code
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
# deprecated).
# Corresponds to the JSON property `contentAdsSettings`
# @return [Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings]
attr_accessor :content_ads_settings
@ -339,7 +340,7 @@ module Google
# @return [String]
attr_accessor :kind
# Settings specific to WAP mobile content ads (AFMC).
# Settings specific to WAP mobile content ads (AFMC - deprecated).
# Corresponds to the JSON property `mobileContentAdsSettings`
# @return [Google::Apis::AdsensehostV4_1::AdUnit::MobileContentAdsSettings]
attr_accessor :mobile_content_ads_settings
@ -366,17 +367,18 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@content_ads_settings = args[:content_ads_settings] unless args[:content_ads_settings].nil?
@custom_style = args[:custom_style] unless args[:custom_style].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@mobile_content_ads_settings = args[:mobile_content_ads_settings] unless args[:mobile_content_ads_settings].nil?
@name = args[:name] unless args[:name].nil?
@status = args[:status] unless args[:status].nil?
@code = args[:code] if args.key?(:code)
@content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings)
@custom_style = args[:custom_style] if args.key?(:custom_style)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings)
@name = args[:name] if args.key?(:name)
@status = args[:status] if args.key?(:status)
end
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
# deprecated).
class ContentAdsSettings
include Google::Apis::Core::Hashable
@ -401,9 +403,9 @@ module Google
# Update properties of this object
def update!(**args)
@backup_option = args[:backup_option] unless args[:backup_option].nil?
@size = args[:size] unless args[:size].nil?
@type = args[:type] unless args[:type].nil?
@backup_option = args[:backup_option] if args.key?(:backup_option)
@size = args[:size] if args.key?(:size)
@type = args[:type] if args.key?(:type)
end
# The backup option to be used in instances where no ad is available.
@ -433,14 +435,14 @@ module Google
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@type = args[:type] unless args[:type].nil?
@url = args[:url] unless args[:url].nil?
@color = args[:color] if args.key?(:color)
@type = args[:type] if args.key?(:type)
@url = args[:url] if args.key?(:url)
end
end
end
# Settings specific to WAP mobile content ads (AFMC).
# Settings specific to WAP mobile content ads (AFMC - deprecated).
class MobileContentAdsSettings
include Google::Apis::Core::Hashable
@ -470,10 +472,10 @@ module Google
# Update properties of this object
def update!(**args)
@markup_language = args[:markup_language] unless args[:markup_language].nil?
@scripting_language = args[:scripting_language] unless args[:scripting_language].nil?
@size = args[:size] unless args[:size].nil?
@type = args[:type] unless args[:type].nil?
@markup_language = args[:markup_language] if args.key?(:markup_language)
@scripting_language = args[:scripting_language] if args.key?(:scripting_language)
@size = args[:size] if args.key?(:size)
@type = args[:type] if args.key?(:type)
end
end
end
@ -509,10 +511,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -536,7 +538,8 @@ module Google
# @return [String]
attr_accessor :kind
# The products to associate with the user. Options: AFC, AFF, AFS, AFMC
# The products to associate with the user. Options: AFC, AFG, AFV, AFS (
# deprecated), AFMC (deprecated)
# Corresponds to the JSON property `productCodes`
# @return [Array<String>]
attr_accessor :product_codes
@ -575,15 +578,15 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] unless args[:account_id].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_codes = args[:product_codes] unless args[:product_codes].nil?
@redirect_url = args[:redirect_url] unless args[:redirect_url].nil?
@status = args[:status] unless args[:status].nil?
@user_locale = args[:user_locale] unless args[:user_locale].nil?
@website_locale = args[:website_locale] unless args[:website_locale].nil?
@website_url = args[:website_url] unless args[:website_url].nil?
@account_id = args[:account_id] if args.key?(:account_id)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@product_codes = args[:product_codes] if args.key?(:product_codes)
@redirect_url = args[:redirect_url] if args.key?(:redirect_url)
@status = args[:status] if args.key?(:status)
@user_locale = args[:user_locale] if args.key?(:user_locale)
@website_locale = args[:website_locale] if args.key?(:website_locale)
@website_url = args[:website_url] if args.key?(:website_url)
end
end
@ -618,10 +621,10 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@code = args[:code] if args.key?(:code)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -656,10 +659,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -716,13 +719,13 @@ module Google
# Update properties of this object
def update!(**args)
@averages = args[:averages] unless args[:averages].nil?
@headers = args[:headers] unless args[:headers].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
@total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil?
@totals = args[:totals] unless args[:totals].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@averages = args[:averages] if args.key?(:averages)
@headers = args[:headers] if args.key?(:headers)
@kind = args[:kind] if args.key?(:kind)
@rows = args[:rows] if args.key?(:rows)
@total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows)
@totals = args[:totals] if args.key?(:totals)
@warnings = args[:warnings] if args.key?(:warnings)
end
#
@ -752,9 +755,9 @@ module Google
# Update properties of this object
def update!(**args)
@currency = args[:currency] unless args[:currency].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@currency = args[:currency] if args.key?(:currency)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
end
@ -786,9 +789,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@url_pattern = args[:url_pattern] unless args[:url_pattern].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@url_pattern = args[:url_pattern] if args.key?(:url_pattern)
end
end
@ -823,10 +826,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -44,8 +44,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@restrictions = args[:restrictions] unless args[:restrictions].nil?
@kind = args[:kind] if args.key?(:kind)
@restrictions = args[:restrictions] if args.key?(:restrictions)
end
end
@ -98,13 +98,13 @@ module Google
# Update properties of this object
def update!(**args)
@default_value = args[:default_value] unless args[:default_value].nil?
@description = args[:description] unless args[:description].nil?
@entry = args[:entry] unless args[:entry].nil?
@entry_value = args[:entry_value] unless args[:entry_value].nil?
@key = args[:key] unless args[:key].nil?
@restriction_type = args[:restriction_type] unless args[:restriction_type].nil?
@title = args[:title] unless args[:title].nil?
@default_value = args[:default_value] if args.key?(:default_value)
@description = args[:description] if args.key?(:description)
@entry = args[:entry] if args.key?(:entry)
@entry_value = args[:entry_value] if args.key?(:entry_value)
@key = args[:key] if args.key?(:key)
@restriction_type = args[:restriction_type] if args.key?(:restriction_type)
@title = args[:title] if args.key?(:title)
end
end
@ -144,11 +144,11 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] unless args[:type].nil?
@value_bool = args[:value_bool] unless args[:value_bool].nil?
@value_integer = args[:value_integer] unless args[:value_integer].nil?
@value_multiselect = args[:value_multiselect] unless args[:value_multiselect].nil?
@value_string = args[:value_string] unless args[:value_string].nil?
@type = args[:type] if args.key?(:type)
@value_bool = args[:value_bool] if args.key?(:value_bool)
@value_integer = args[:value_integer] if args.key?(:value_integer)
@value_multiselect = args[:value_multiselect] if args.key?(:value_multiselect)
@value_string = args[:value_string] if args.key?(:value_string)
end
end
@ -174,8 +174,8 @@ module Google
# Update properties of this object
def update!(**args)
@version_code = args[:version_code] unless args[:version_code].nil?
@version_string = args[:version_string] unless args[:version_string].nil?
@version_code = args[:version_code] if args.key?(:version_code)
@version_string = args[:version_string] if args.key?(:version_string)
end
end
@ -201,8 +201,8 @@ module Google
# Update properties of this object
def update!(**args)
@approval_url = args[:approval_url] unless args[:approval_url].nil?
@kind = args[:kind] unless args[:kind].nil?
@approval_url = args[:approval_url] if args.key?(:approval_url)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -259,11 +259,11 @@ module Google
# Update properties of this object
def update!(**args)
@collection_id = args[:collection_id] unless args[:collection_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@visibility = args[:visibility] unless args[:visibility].nil?
@collection_id = args[:collection_id] if args.key?(:collection_id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@product_id = args[:product_id] if args.key?(:product_id)
@visibility = args[:visibility] if args.key?(:visibility)
end
end
@ -288,8 +288,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@user = args[:user] unless args[:user].nil?
@kind = args[:kind] if args.key?(:kind)
@user = args[:user] if args.key?(:user)
end
end
@ -315,8 +315,8 @@ module Google
# Update properties of this object
def update!(**args)
@collection = args[:collection] unless args[:collection].nil?
@kind = args[:kind] unless args[:kind].nil?
@collection = args[:collection] if args.key?(:collection)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -354,9 +354,9 @@ module Google
# Update properties of this object
def update!(**args)
@android_id = args[:android_id] unless args[:android_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@management_type = args[:management_type] unless args[:management_type].nil?
@android_id = args[:android_id] if args.key?(:android_id)
@kind = args[:kind] if args.key?(:kind)
@management_type = args[:management_type] if args.key?(:management_type)
end
end
@ -385,8 +385,8 @@ module Google
# Update properties of this object
def update!(**args)
@account_state = args[:account_state] unless args[:account_state].nil?
@kind = args[:kind] unless args[:kind].nil?
@account_state = args[:account_state] if args.key?(:account_state)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -411,8 +411,8 @@ module Google
# Update properties of this object
def update!(**args)
@device = args[:device] unless args[:device].nil?
@kind = args[:kind] unless args[:kind].nil?
@device = args[:device] if args.key?(:device)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -470,10 +470,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@primary_domain = args[:primary_domain] unless args[:primary_domain].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@primary_domain = args[:primary_domain] if args.key?(:primary_domain)
end
end
@ -499,8 +499,8 @@ module Google
# Update properties of this object
def update!(**args)
@account_email = args[:account_email] unless args[:account_email].nil?
@kind = args[:kind] unless args[:kind].nil?
@account_email = args[:account_email] if args.key?(:account_email)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -525,8 +525,8 @@ module Google
# Update properties of this object
def update!(**args)
@enterprise = args[:enterprise] unless args[:enterprise].nil?
@kind = args[:kind] unless args[:kind].nil?
@enterprise = args[:enterprise] if args.key?(:enterprise)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -551,8 +551,8 @@ module Google
# Update properties of this object
def update!(**args)
@message_id = args[:message_id] unless args[:message_id].nil?
@topic_name = args[:topic_name] unless args[:topic_name].nil?
@message_id = args[:message_id] if args.key?(:message_id)
@topic_name = args[:topic_name] if args.key?(:topic_name)
end
end
@ -607,9 +607,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@reason = args[:reason] unless args[:reason].nil?
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@reason = args[:reason] if args.key?(:reason)
end
end
@ -636,8 +636,8 @@ module Google
# Update properties of this object
def update!(**args)
@entitlement = args[:entitlement] unless args[:entitlement].nil?
@kind = args[:kind] unless args[:kind].nil?
@entitlement = args[:entitlement] if args.key?(:entitlement)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -708,12 +708,12 @@ module Google
# Update properties of this object
def update!(**args)
@acquisition_kind = args[:acquisition_kind] unless args[:acquisition_kind].nil?
@approval = args[:approval] unless args[:approval].nil?
@kind = args[:kind] unless args[:kind].nil?
@num_provisioned = args[:num_provisioned] unless args[:num_provisioned].nil?
@num_purchased = args[:num_purchased] unless args[:num_purchased].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@acquisition_kind = args[:acquisition_kind] if args.key?(:acquisition_kind)
@approval = args[:approval] if args.key?(:approval)
@kind = args[:kind] if args.key?(:kind)
@num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned)
@num_purchased = args[:num_purchased] if args.key?(:num_purchased)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
@ -738,8 +738,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@user = args[:user] unless args[:user].nil?
@kind = args[:kind] if args.key?(:kind)
@user = args[:user] if args.key?(:user)
end
end
@ -764,8 +764,8 @@ module Google
# Update properties of this object
def update!(**args)
@group_license = args[:group_license] unless args[:group_license].nil?
@kind = args[:kind] unless args[:kind].nil?
@group_license = args[:group_license] if args.key?(:group_license)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -823,10 +823,10 @@ module Google
# Update properties of this object
def update!(**args)
@install_state = args[:install_state] unless args[:install_state].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@version_code = args[:version_code] unless args[:version_code].nil?
@install_state = args[:install_state] if args.key?(:install_state)
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@version_code = args[:version_code] if args.key?(:version_code)
end
end
@ -852,8 +852,8 @@ module Google
# Update properties of this object
def update!(**args)
@install = args[:install] unless args[:install].nil?
@kind = args[:kind] unless args[:kind].nil?
@install = args[:install] if args.key?(:install)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -877,8 +877,8 @@ module Google
# Update properties of this object
def update!(**args)
@locale = args[:locale] unless args[:locale].nil?
@text = args[:text] unless args[:text].nil?
@locale = args[:locale] if args.key?(:locale)
@text = args[:text] if args.key?(:text)
end
end
@ -919,10 +919,10 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@description = args[:description] if args.key?(:description)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@permission_id = args[:permission_id] if args.key?(:permission_id)
end
end
@ -1008,17 +1008,17 @@ module Google
# Update properties of this object
def update!(**args)
@app_version = args[:app_version] unless args[:app_version].nil?
@author_name = args[:author_name] unless args[:author_name].nil?
@details_url = args[:details_url] unless args[:details_url].nil?
@distribution_channel = args[:distribution_channel] unless args[:distribution_channel].nil?
@icon_url = args[:icon_url] unless args[:icon_url].nil?
@kind = args[:kind] unless args[:kind].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@product_pricing = args[:product_pricing] unless args[:product_pricing].nil?
@requires_container_app = args[:requires_container_app] unless args[:requires_container_app].nil?
@title = args[:title] unless args[:title].nil?
@work_details_url = args[:work_details_url] unless args[:work_details_url].nil?
@app_version = args[:app_version] if args.key?(:app_version)
@author_name = args[:author_name] if args.key?(:author_name)
@details_url = args[:details_url] if args.key?(:details_url)
@distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@product_pricing = args[:product_pricing] if args.key?(:product_pricing)
@requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
@title = args[:title] if args.key?(:title)
@work_details_url = args[:work_details_url] if args.key?(:work_details_url)
end
end
@ -1045,8 +1045,8 @@ module Google
# Update properties of this object
def update!(**args)
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@state = args[:state] unless args[:state].nil?
@permission_id = args[:permission_id] if args.key?(:permission_id)
@state = args[:state] if args.key?(:state)
end
end
@ -1078,9 +1078,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@permission = args[:permission] unless args[:permission].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@kind = args[:kind] if args.key?(:kind)
@permission = args[:permission] if args.key?(:permission)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
@ -1105,8 +1105,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
@ -1125,7 +1125,7 @@ module Google
# Update properties of this object
def update!(**args)
@approval_url_info = args[:approval_url_info] unless args[:approval_url_info].nil?
@approval_url_info = args[:approval_url_info] if args.key?(:approval_url_info)
end
end
@ -1151,7 +1151,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
@ -1200,11 +1200,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@order_in_page = args[:order_in_page] unless args[:order_in_page].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@order_in_page = args[:order_in_page] if args.key?(:order_in_page)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
@ -1235,8 +1235,8 @@ module Google
# Update properties of this object
def update!(**args)
@homepage_id = args[:homepage_id] unless args[:homepage_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -1261,8 +1261,8 @@ module Google
# Update properties of this object
def update!(**args)
@cluster = args[:cluster] unless args[:cluster].nil?
@kind = args[:kind] unless args[:kind].nil?
@cluster = args[:cluster] if args.key?(:cluster)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -1287,8 +1287,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@page = args[:page] unless args[:page].nil?
@kind = args[:kind] if args.key?(:kind)
@page = args[:page] if args.key?(:page)
end
end
@ -1330,10 +1330,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@link = args[:link] unless args[:link].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@link = args[:link] if args.key?(:link)
@name = args[:name] if args.key?(:name)
end
end
@ -1371,9 +1371,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@primary_email = args[:primary_email] unless args[:primary_email].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@primary_email = args[:primary_email] if args.key?(:primary_email)
end
end
@ -1407,9 +1407,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@token = args[:token] unless args[:token].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@kind = args[:kind] if args.key?(:kind)
@token = args[:token] if args.key?(:token)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
@ -1434,8 +1434,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@user = args[:user] unless args[:user].nil?
@kind = args[:kind] if args.key?(:kind)
@user = args[:user] if args.key?(:user)
end
end
end

View File

@ -42,8 +42,8 @@ module Google
# Update properties of this object
def update!(**args)
@binary = args[:binary] unless args[:binary].nil?
@version_code = args[:version_code] unless args[:version_code].nil?
@binary = args[:binary] if args.key?(:binary)
@version_code = args[:version_code] if args.key?(:version_code)
end
end
@ -63,7 +63,7 @@ module Google
# Update properties of this object
def update!(**args)
@sha1 = args[:sha1] unless args[:sha1].nil?
@sha1 = args[:sha1] if args.key?(:sha1)
end
end
@ -87,8 +87,8 @@ module Google
# Update properties of this object
def update!(**args)
@language = args[:language] unless args[:language].nil?
@recent_changes = args[:recent_changes] unless args[:recent_changes].nil?
@language = args[:language] if args.key?(:language)
@recent_changes = args[:recent_changes] if args.key?(:recent_changes)
end
end
@ -113,8 +113,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@listings = args[:listings] unless args[:listings].nil?
@kind = args[:kind] if args.key?(:kind)
@listings = args[:listings] if args.key?(:listings)
end
end
@ -136,7 +136,7 @@ module Google
# Update properties of this object
def update!(**args)
@externally_hosted_apk = args[:externally_hosted_apk] unless args[:externally_hosted_apk].nil?
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
end
end
@ -158,7 +158,7 @@ module Google
# Update properties of this object
def update!(**args)
@externally_hosted_apk = args[:externally_hosted_apk] unless args[:externally_hosted_apk].nil?
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
end
end
@ -183,8 +183,8 @@ module Google
# Update properties of this object
def update!(**args)
@apks = args[:apks] unless args[:apks].nil?
@kind = args[:kind] unless args[:kind].nil?
@apks = args[:apks] if args.key?(:apks)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -218,10 +218,10 @@ module Google
# Update properties of this object
def update!(**args)
@contact_email = args[:contact_email] unless args[:contact_email].nil?
@contact_phone = args[:contact_phone] unless args[:contact_phone].nil?
@contact_website = args[:contact_website] unless args[:contact_website].nil?
@default_language = args[:default_language] unless args[:default_language].nil?
@contact_email = args[:contact_email] if args.key?(:contact_email)
@contact_phone = args[:contact_phone] if args.key?(:contact_phone)
@contact_website = args[:contact_website] if args.key?(:contact_website)
@default_language = args[:default_language] if args.key?(:default_language)
end
end
@ -247,8 +247,8 @@ module Google
# Update properties of this object
def update!(**args)
@expiry_time_seconds = args[:expiry_time_seconds] unless args[:expiry_time_seconds].nil?
@id = args[:id] unless args[:id].nil?
@expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds)
@id = args[:id] if args.key?(:id)
end
end
@ -285,10 +285,10 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@product_type = args[:product_type] unless args[:product_type].nil?
@token = args[:token] unless args[:token].nil?
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@product_type = args[:product_type] if args.key?(:product_type)
@token = args[:token] if args.key?(:token)
end
end
@ -317,9 +317,9 @@ module Google
# Update properties of this object
def update!(**args)
@page_info = args[:page_info] unless args[:page_info].nil?
@resources = args[:resources] unless args[:resources].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@page_info = args[:page_info] if args.key?(:page_info)
@resources = args[:resources] if args.key?(:resources)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
end
end
@ -346,8 +346,8 @@ module Google
# Update properties of this object
def update!(**args)
@file_size = args[:file_size] unless args[:file_size].nil?
@references_version = args[:references_version] unless args[:references_version].nil?
@file_size = args[:file_size] if args.key?(:file_size)
@references_version = args[:references_version] if args.key?(:references_version)
end
end
@ -366,7 +366,7 @@ module Google
# Update properties of this object
def update!(**args)
@expansion_file = args[:expansion_file] unless args[:expansion_file].nil?
@expansion_file = args[:expansion_file] if args.key?(:expansion_file)
end
end
@ -459,21 +459,21 @@ module Google
# Update properties of this object
def update!(**args)
@application_label = args[:application_label] unless args[:application_label].nil?
@certificate_base64s = args[:certificate_base64s] unless args[:certificate_base64s].nil?
@externally_hosted_url = args[:externally_hosted_url] unless args[:externally_hosted_url].nil?
@file_sha1_base64 = args[:file_sha1_base64] unless args[:file_sha1_base64].nil?
@file_sha256_base64 = args[:file_sha256_base64] unless args[:file_sha256_base64].nil?
@file_size = args[:file_size] unless args[:file_size].nil?
@icon_base64 = args[:icon_base64] unless args[:icon_base64].nil?
@maximum_sdk = args[:maximum_sdk] unless args[:maximum_sdk].nil?
@minimum_sdk = args[:minimum_sdk] unless args[:minimum_sdk].nil?
@native_codes = args[:native_codes] unless args[:native_codes].nil?
@package_name = args[:package_name] unless args[:package_name].nil?
@uses_features = args[:uses_features] unless args[:uses_features].nil?
@uses_permissions = args[:uses_permissions] unless args[:uses_permissions].nil?
@version_code = args[:version_code] unless args[:version_code].nil?
@version_name = args[:version_name] unless args[:version_name].nil?
@application_label = args[:application_label] if args.key?(:application_label)
@certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s)
@externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url)
@file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64)
@file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64)
@file_size = args[:file_size] if args.key?(:file_size)
@icon_base64 = args[:icon_base64] if args.key?(:icon_base64)
@maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk)
@minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk)
@native_codes = args[:native_codes] if args.key?(:native_codes)
@package_name = args[:package_name] if args.key?(:package_name)
@uses_features = args[:uses_features] if args.key?(:uses_features)
@uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions)
@version_code = args[:version_code] if args.key?(:version_code)
@version_name = args[:version_name] if args.key?(:version_name)
end
end
@ -497,8 +497,8 @@ module Google
# Update properties of this object
def update!(**args)
@max_sdk_version = args[:max_sdk_version] unless args[:max_sdk_version].nil?
@name = args[:name] unless args[:name].nil?
@max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version)
@name = args[:name] if args.key?(:name)
end
end
@ -527,9 +527,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@sha1 = args[:sha1] unless args[:sha1].nil?
@url = args[:url] unless args[:url].nil?
@id = args[:id] if args.key?(:id)
@sha1 = args[:sha1] if args.key?(:sha1)
@url = args[:url] if args.key?(:url)
end
end
@ -548,7 +548,7 @@ module Google
# Update properties of this object
def update!(**args)
@deleted = args[:deleted] unless args[:deleted].nil?
@deleted = args[:deleted] if args.key?(:deleted)
end
end
@ -567,7 +567,7 @@ module Google
# Update properties of this object
def update!(**args)
@images = args[:images] unless args[:images].nil?
@images = args[:images] if args.key?(:images)
end
end
@ -586,7 +586,7 @@ module Google
# Update properties of this object
def update!(**args)
@image = args[:image] unless args[:image].nil?
@image = args[:image] if args.key?(:image)
end
end
@ -663,17 +663,17 @@ module Google
# Update properties of this object
def update!(**args)
@default_language = args[:default_language] unless args[:default_language].nil?
@default_price = args[:default_price] unless args[:default_price].nil?
@listings = args[:listings] unless args[:listings].nil?
@package_name = args[:package_name] unless args[:package_name].nil?
@prices = args[:prices] unless args[:prices].nil?
@purchase_type = args[:purchase_type] unless args[:purchase_type].nil?
@season = args[:season] unless args[:season].nil?
@sku = args[:sku] unless args[:sku].nil?
@status = args[:status] unless args[:status].nil?
@subscription_period = args[:subscription_period] unless args[:subscription_period].nil?
@trial_period = args[:trial_period] unless args[:trial_period].nil?
@default_language = args[:default_language] if args.key?(:default_language)
@default_price = args[:default_price] if args.key?(:default_price)
@listings = args[:listings] if args.key?(:listings)
@package_name = args[:package_name] if args.key?(:package_name)
@prices = args[:prices] if args.key?(:prices)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
@season = args[:season] if args.key?(:season)
@sku = args[:sku] if args.key?(:sku)
@status = args[:status] if args.key?(:status)
@subscription_period = args[:subscription_period] if args.key?(:subscription_period)
@trial_period = args[:trial_period] if args.key?(:trial_period)
end
end
@ -697,8 +697,8 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@title = args[:title] unless args[:title].nil?
@description = args[:description] if args.key?(:description)
@title = args[:title] if args.key?(:title)
end
end
@ -717,7 +717,7 @@ module Google
# Update properties of this object
def update!(**args)
@entrys = args[:entrys] unless args[:entrys].nil?
@entrys = args[:entrys] if args.key?(:entrys)
end
end
@ -751,10 +751,10 @@ module Google
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] unless args[:batch_id].nil?
@inappproductsinsertrequest = args[:inappproductsinsertrequest] unless args[:inappproductsinsertrequest].nil?
@inappproductsupdaterequest = args[:inappproductsupdaterequest] unless args[:inappproductsupdaterequest].nil?
@method_name = args[:method_name] unless args[:method_name].nil?
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertrequest = args[:inappproductsinsertrequest] if args.key?(:inappproductsinsertrequest)
@inappproductsupdaterequest = args[:inappproductsupdaterequest] if args.key?(:inappproductsupdaterequest)
@method_name = args[:method_name] if args.key?(:method_name)
end
end
@ -779,8 +779,8 @@ module Google
# Update properties of this object
def update!(**args)
@entrys = args[:entrys] unless args[:entrys].nil?
@kind = args[:kind] unless args[:kind].nil?
@entrys = args[:entrys] if args.key?(:entrys)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -809,9 +809,9 @@ module Google
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] unless args[:batch_id].nil?
@inappproductsinsertresponse = args[:inappproductsinsertresponse] unless args[:inappproductsinsertresponse].nil?
@inappproductsupdateresponse = args[:inappproductsupdateresponse] unless args[:inappproductsupdateresponse].nil?
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertresponse = args[:inappproductsinsertresponse] if args.key?(:inappproductsinsertresponse)
@inappproductsupdateresponse = args[:inappproductsupdateresponse] if args.key?(:inappproductsupdateresponse)
end
end
@ -830,7 +830,7 @@ module Google
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
@ -849,7 +849,7 @@ module Google
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
@ -884,10 +884,10 @@ module Google
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
@kind = args[:kind] unless args[:kind].nil?
@page_info = args[:page_info] unless args[:page_info].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
@kind = args[:kind] if args.key?(:kind)
@page_info = args[:page_info] if args.key?(:page_info)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
end
end
@ -906,7 +906,7 @@ module Google
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
@ -925,7 +925,7 @@ module Google
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] unless args[:inappproduct].nil?
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
@ -965,11 +965,11 @@ module Google
# Update properties of this object
def update!(**args)
@full_description = args[:full_description] unless args[:full_description].nil?
@language = args[:language] unless args[:language].nil?
@short_description = args[:short_description] unless args[:short_description].nil?
@title = args[:title] unless args[:title].nil?
@video = args[:video] unless args[:video].nil?
@full_description = args[:full_description] if args.key?(:full_description)
@language = args[:language] if args.key?(:language)
@short_description = args[:short_description] if args.key?(:short_description)
@title = args[:title] if args.key?(:title)
@video = args[:video] if args.key?(:video)
end
end
@ -994,8 +994,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@listings = args[:listings] unless args[:listings].nil?
@kind = args[:kind] if args.key?(:kind)
@listings = args[:listings] if args.key?(:listings)
end
end
@ -1020,8 +1020,8 @@ module Google
# Update properties of this object
def update!(**args)
@day = args[:day] unless args[:day].nil?
@month = args[:month] unless args[:month].nil?
@day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
end
end
@ -1050,9 +1050,9 @@ module Google
# Update properties of this object
def update!(**args)
@result_per_page = args[:result_per_page] unless args[:result_per_page].nil?
@start_index = args[:start_index] unless args[:start_index].nil?
@total_results = args[:total_results] unless args[:total_results].nil?
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
@start_index = args[:start_index] if args.key?(:start_index)
@total_results = args[:total_results] if args.key?(:total_results)
end
end
@ -1076,8 +1076,8 @@ module Google
# Update properties of this object
def update!(**args)
@currency = args[:currency] unless args[:currency].nil?
@price_micros = args[:price_micros] unless args[:price_micros].nil?
@currency = args[:currency] if args.key?(:currency)
@price_micros = args[:price_micros] if args.key?(:price_micros)
end
end
@ -1123,11 +1123,11 @@ module Google
# Update properties of this object
def update!(**args)
@consumption_state = args[:consumption_state] unless args[:consumption_state].nil?
@developer_payload = args[:developer_payload] unless args[:developer_payload].nil?
@kind = args[:kind] unless args[:kind].nil?
@purchase_state = args[:purchase_state] unless args[:purchase_state].nil?
@purchase_time_millis = args[:purchase_time_millis] unless args[:purchase_time_millis].nil?
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
@kind = args[:kind] if args.key?(:kind)
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
end
end
@ -1154,8 +1154,8 @@ module Google
# Update properties of this object
def update!(**args)
@default_price = args[:default_price] unless args[:default_price].nil?
@start = args[:start] unless args[:start].nil?
@default_price = args[:default_price] if args.key?(:default_price)
@start = args[:start] if args.key?(:start)
end
end
@ -1186,9 +1186,9 @@ module Google
# Update properties of this object
def update!(**args)
@end = args[:end] unless args[:end].nil?
@prorations = args[:prorations] unless args[:prorations].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] if args.key?(:end)
@prorations = args[:prorations] if args.key?(:prorations)
@start = args[:start] if args.key?(:start)
end
end
@ -1215,8 +1215,8 @@ module Google
# Update properties of this object
def update!(**args)
@desired_expiry_time_millis = args[:desired_expiry_time_millis] unless args[:desired_expiry_time_millis].nil?
@expected_expiry_time_millis = args[:expected_expiry_time_millis] unless args[:expected_expiry_time_millis].nil?
@desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
@expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
end
end
@ -1254,10 +1254,10 @@ module Google
# Update properties of this object
def update!(**args)
@auto_renewing = args[:auto_renewing] unless args[:auto_renewing].nil?
@expiry_time_millis = args[:expiry_time_millis] unless args[:expiry_time_millis].nil?
@kind = args[:kind] unless args[:kind].nil?
@start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
@kind = args[:kind] if args.key?(:kind)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
end
end
@ -1277,7 +1277,7 @@ module Google
# Update properties of this object
def update!(**args)
@deferral_info = args[:deferral_info] unless args[:deferral_info].nil?
@deferral_info = args[:deferral_info] if args.key?(:deferral_info)
end
end
@ -1296,7 +1296,7 @@ module Google
# Update properties of this object
def update!(**args)
@new_expiry_time_millis = args[:new_expiry_time_millis] unless args[:new_expiry_time_millis].nil?
@new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis)
end
end
@ -1320,8 +1320,8 @@ module Google
# Update properties of this object
def update!(**args)
@google_groups = args[:google_groups] unless args[:google_groups].nil?
@google_plus_communities = args[:google_plus_communities] unless args[:google_plus_communities].nil?
@google_groups = args[:google_groups] if args.key?(:google_groups)
@google_plus_communities = args[:google_plus_communities] if args.key?(:google_plus_communities)
end
end
@ -1345,8 +1345,8 @@ module Google
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil?
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
end
end
@ -1375,9 +1375,9 @@ module Google
# Update properties of this object
def update!(**args)
@track = args[:track] unless args[:track].nil?
@user_fraction = args[:user_fraction] unless args[:user_fraction].nil?
@version_codes = args[:version_codes] unless args[:version_codes].nil?
@track = args[:track] if args.key?(:track)
@user_fraction = args[:user_fraction] if args.key?(:user_fraction)
@version_codes = args[:version_codes] if args.key?(:version_codes)
end
end
@ -1402,8 +1402,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@tracks = args[:tracks] unless args[:tracks].nil?
@kind = args[:kind] if args.key?(:kind)
@tracks = args[:tracks] if args.key?(:tracks)
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta4
VERSION = 'V1beta4'
REVISION = '20151123'
REVISION = '20160121'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -60,17 +60,24 @@ module Google
# @return [String]
attr_accessor :code_bucket
# A Google Cloud Storage bucket which can be used by the application to store
# content. @OutputOnly
# Corresponds to the JSON property `defaultBucket`
# @return [String]
attr_accessor :default_bucket
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@id = args[:id] unless args[:id].nil?
@dispatch_rules = args[:dispatch_rules] unless args[:dispatch_rules].nil?
@location = args[:location] unless args[:location].nil?
@code_bucket = args[:code_bucket] unless args[:code_bucket].nil?
@name = args[:name] if args.key?(:name)
@id = args[:id] if args.key?(:id)
@dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
@location = args[:location] if args.key?(:location)
@code_bucket = args[:code_bucket] if args.key?(:code_bucket)
@default_bucket = args[:default_bucket] if args.key?(:default_bucket)
end
end
@ -103,9 +110,9 @@ module Google
# Update properties of this object
def update!(**args)
@domain = args[:domain] unless args[:domain].nil?
@path = args[:path] unless args[:path].nil?
@module = args[:module] unless args[:module].nil?
@domain = args[:domain] if args.key?(:domain)
@path = args[:path] if args.key?(:path)
@module = args[:module] if args.key?(:module)
end
end
@ -282,32 +289,32 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@id = args[:id] unless args[:id].nil?
@automatic_scaling = args[:automatic_scaling] unless args[:automatic_scaling].nil?
@basic_scaling = args[:basic_scaling] unless args[:basic_scaling].nil?
@manual_scaling = args[:manual_scaling] unless args[:manual_scaling].nil?
@inbound_services = args[:inbound_services] unless args[:inbound_services].nil?
@instance_class = args[:instance_class] unless args[:instance_class].nil?
@network = args[:network] unless args[:network].nil?
@resources = args[:resources] unless args[:resources].nil?
@runtime = args[:runtime] unless args[:runtime].nil?
@threadsafe = args[:threadsafe] unless args[:threadsafe].nil?
@vm = args[:vm] unless args[:vm].nil?
@beta_settings = args[:beta_settings] unless args[:beta_settings].nil?
@env = args[:env] unless args[:env].nil?
@serving_status = args[:serving_status] unless args[:serving_status].nil?
@deployer = args[:deployer] unless args[:deployer].nil?
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@handlers = args[:handlers] unless args[:handlers].nil?
@error_handlers = args[:error_handlers] unless args[:error_handlers].nil?
@libraries = args[:libraries] unless args[:libraries].nil?
@api_config = args[:api_config] unless args[:api_config].nil?
@env_variables = args[:env_variables] unless args[:env_variables].nil?
@default_expiration = args[:default_expiration] unless args[:default_expiration].nil?
@health_check = args[:health_check] unless args[:health_check].nil?
@nobuild_files_regex = args[:nobuild_files_regex] unless args[:nobuild_files_regex].nil?
@deployment = args[:deployment] unless args[:deployment].nil?
@name = args[:name] if args.key?(:name)
@id = args[:id] if args.key?(:id)
@automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
@basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
@inbound_services = args[:inbound_services] if args.key?(:inbound_services)
@instance_class = args[:instance_class] if args.key?(:instance_class)
@network = args[:network] if args.key?(:network)
@resources = args[:resources] if args.key?(:resources)
@runtime = args[:runtime] if args.key?(:runtime)
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
@vm = args[:vm] if args.key?(:vm)
@beta_settings = args[:beta_settings] if args.key?(:beta_settings)
@env = args[:env] if args.key?(:env)
@serving_status = args[:serving_status] if args.key?(:serving_status)
@deployer = args[:deployer] if args.key?(:deployer)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@handlers = args[:handlers] if args.key?(:handlers)
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)
@libraries = args[:libraries] if args.key?(:libraries)
@api_config = args[:api_config] if args.key?(:api_config)
@env_variables = args[:env_variables] if args.key?(:env_variables)
@default_expiration = args[:default_expiration] if args.key?(:default_expiration)
@health_check = args[:health_check] if args.key?(:health_check)
@nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
@deployment = args[:deployment] if args.key?(:deployment)
end
end
@ -392,18 +399,18 @@ module Google
# Update properties of this object
def update!(**args)
@cool_down_period = args[:cool_down_period] unless args[:cool_down_period].nil?
@cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil?
@max_concurrent_requests = args[:max_concurrent_requests] unless args[:max_concurrent_requests].nil?
@max_idle_instances = args[:max_idle_instances] unless args[:max_idle_instances].nil?
@max_total_instances = args[:max_total_instances] unless args[:max_total_instances].nil?
@max_pending_latency = args[:max_pending_latency] unless args[:max_pending_latency].nil?
@min_idle_instances = args[:min_idle_instances] unless args[:min_idle_instances].nil?
@min_total_instances = args[:min_total_instances] unless args[:min_total_instances].nil?
@min_pending_latency = args[:min_pending_latency] unless args[:min_pending_latency].nil?
@request_utilization = args[:request_utilization] unless args[:request_utilization].nil?
@disk_utilization = args[:disk_utilization] unless args[:disk_utilization].nil?
@network_utilization = args[:network_utilization] unless args[:network_utilization].nil?
@cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
@max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
@max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
@max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
@max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
@min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
@min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
@min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
@request_utilization = args[:request_utilization] if args.key?(:request_utilization)
@disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
@network_utilization = args[:network_utilization] if args.key?(:network_utilization)
end
end
@ -427,8 +434,8 @@ module Google
# Update properties of this object
def update!(**args)
@aggregation_window_length = args[:aggregation_window_length] unless args[:aggregation_window_length].nil?
@target_utilization = args[:target_utilization] unless args[:target_utilization].nil?
@aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
@target_utilization = args[:target_utilization] if args.key?(:target_utilization)
end
end
@ -452,8 +459,8 @@ module Google
# Update properties of this object
def update!(**args)
@target_request_count_per_sec = args[:target_request_count_per_sec] unless args[:target_request_count_per_sec].nil?
@target_concurrent_requests = args[:target_concurrent_requests] unless args[:target_concurrent_requests].nil?
@target_request_count_per_sec = args[:target_request_count_per_sec] if args.key?(:target_request_count_per_sec)
@target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
end
end
@ -487,10 +494,10 @@ module Google
# Update properties of this object
def update!(**args)
@target_write_bytes_per_sec = args[:target_write_bytes_per_sec] unless args[:target_write_bytes_per_sec].nil?
@target_write_ops_per_sec = args[:target_write_ops_per_sec] unless args[:target_write_ops_per_sec].nil?
@target_read_bytes_per_sec = args[:target_read_bytes_per_sec] unless args[:target_read_bytes_per_sec].nil?
@target_read_ops_per_sec = args[:target_read_ops_per_sec] unless args[:target_read_ops_per_sec].nil?
@target_write_bytes_per_sec = args[:target_write_bytes_per_sec] if args.key?(:target_write_bytes_per_sec)
@target_write_ops_per_sec = args[:target_write_ops_per_sec] if args.key?(:target_write_ops_per_sec)
@target_read_bytes_per_sec = args[:target_read_bytes_per_sec] if args.key?(:target_read_bytes_per_sec)
@target_read_ops_per_sec = args[:target_read_ops_per_sec] if args.key?(:target_read_ops_per_sec)
end
end
@ -524,10 +531,10 @@ module Google
# Update properties of this object
def update!(**args)
@target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] unless args[:target_sent_bytes_per_sec].nil?
@target_sent_packets_per_sec = args[:target_sent_packets_per_sec] unless args[:target_sent_packets_per_sec].nil?
@target_received_bytes_per_sec = args[:target_received_bytes_per_sec] unless args[:target_received_bytes_per_sec].nil?
@target_received_packets_per_sec = args[:target_received_packets_per_sec] unless args[:target_received_packets_per_sec].nil?
@target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] if args.key?(:target_sent_bytes_per_sec)
@target_sent_packets_per_sec = args[:target_sent_packets_per_sec] if args.key?(:target_sent_packets_per_sec)
@target_received_bytes_per_sec = args[:target_received_bytes_per_sec] if args.key?(:target_received_bytes_per_sec)
@target_received_packets_per_sec = args[:target_received_packets_per_sec] if args.key?(:target_received_packets_per_sec)
end
end
@ -555,8 +562,8 @@ module Google
# Update properties of this object
def update!(**args)
@idle_timeout = args[:idle_timeout] unless args[:idle_timeout].nil?
@max_instances = args[:max_instances] unless args[:max_instances].nil?
@idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
@max_instances = args[:max_instances] if args.key?(:max_instances)
end
end
@ -578,7 +585,7 @@ module Google
# Update properties of this object
def update!(**args)
@instances = args[:instances] unless args[:instances].nil?
@instances = args[:instances] if args.key?(:instances)
end
end
@ -609,9 +616,9 @@ module Google
# Update properties of this object
def update!(**args)
@forwarded_ports = args[:forwarded_ports] unless args[:forwarded_ports].nil?
@instance_tag = args[:instance_tag] unless args[:instance_tag].nil?
@name = args[:name] unless args[:name].nil?
@forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
@instance_tag = args[:instance_tag] if args.key?(:instance_tag)
@name = args[:name] if args.key?(:name)
end
end
@ -640,9 +647,9 @@ module Google
# Update properties of this object
def update!(**args)
@cpu = args[:cpu] unless args[:cpu].nil?
@disk_gb = args[:disk_gb] unless args[:disk_gb].nil?
@memory_gb = args[:memory_gb] unless args[:memory_gb].nil?
@cpu = args[:cpu] if args.key?(:cpu)
@disk_gb = args[:disk_gb] if args.key?(:disk_gb)
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
end
end
@ -712,15 +719,15 @@ module Google
# Update properties of this object
def update!(**args)
@url_regex = args[:url_regex] unless args[:url_regex].nil?
@static_files = args[:static_files] unless args[:static_files].nil?
@static_directory = args[:static_directory] unless args[:static_directory].nil?
@script = args[:script] unless args[:script].nil?
@api_endpoint = args[:api_endpoint] unless args[:api_endpoint].nil?
@security_level = args[:security_level] unless args[:security_level].nil?
@login = args[:login] unless args[:login].nil?
@auth_fail_action = args[:auth_fail_action] unless args[:auth_fail_action].nil?
@redirect_http_response_code = args[:redirect_http_response_code] unless args[:redirect_http_response_code].nil?
@url_regex = args[:url_regex] if args.key?(:url_regex)
@static_files = args[:static_files] if args.key?(:static_files)
@static_directory = args[:static_directory] if args.key?(:static_directory)
@script = args[:script] if args.key?(:script)
@api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
@security_level = args[:security_level] if args.key?(:security_level)
@login = args[:login] if args.key?(:login)
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
@redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
end
end
@ -785,13 +792,13 @@ module Google
# Update properties of this object
def update!(**args)
@path = args[:path] unless args[:path].nil?
@upload_path_regex = args[:upload_path_regex] unless args[:upload_path_regex].nil?
@http_headers = args[:http_headers] unless args[:http_headers].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@require_matching_file = args[:require_matching_file] unless args[:require_matching_file].nil?
@application_readable = args[:application_readable] unless args[:application_readable].nil?
@path = args[:path] if args.key?(:path)
@upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
@http_headers = args[:http_headers] if args.key?(:http_headers)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@expiration = args[:expiration] if args.key?(:expiration)
@require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
@application_readable = args[:application_readable] if args.key?(:application_readable)
end
end
@ -850,12 +857,12 @@ module Google
# Update properties of this object
def update!(**args)
@directory = args[:directory] unless args[:directory].nil?
@http_headers = args[:http_headers] unless args[:http_headers].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@require_matching_file = args[:require_matching_file] unless args[:require_matching_file].nil?
@application_readable = args[:application_readable] unless args[:application_readable].nil?
@directory = args[:directory] if args.key?(:directory)
@http_headers = args[:http_headers] if args.key?(:http_headers)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@expiration = args[:expiration] if args.key?(:expiration)
@require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
@application_readable = args[:application_readable] if args.key?(:application_readable)
end
end
@ -874,7 +881,7 @@ module Google
# Update properties of this object
def update!(**args)
@script_path = args[:script_path] unless args[:script_path].nil?
@script_path = args[:script_path] if args.key?(:script_path)
end
end
@ -893,7 +900,7 @@ module Google
# Update properties of this object
def update!(**args)
@script_path = args[:script_path] unless args[:script_path].nil?
@script_path = args[:script_path] if args.key?(:script_path)
end
end
@ -922,9 +929,9 @@ module Google
# Update properties of this object
def update!(**args)
@error_code = args[:error_code] unless args[:error_code].nil?
@static_file = args[:static_file] unless args[:static_file].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@error_code = args[:error_code] if args.key?(:error_code)
@static_file = args[:static_file] if args.key?(:static_file)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
@ -948,8 +955,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@version = args[:version] unless args[:version].nil?
@name = args[:name] if args.key?(:name)
@version = args[:version] if args.key?(:version)
end
end
@ -989,11 +996,11 @@ module Google
# Update properties of this object
def update!(**args)
@auth_fail_action = args[:auth_fail_action] unless args[:auth_fail_action].nil?
@login = args[:login] unless args[:login].nil?
@script = args[:script] unless args[:script].nil?
@security_level = args[:security_level] unless args[:security_level].nil?
@url = args[:url] unless args[:url].nil?
@auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
@login = args[:login] if args.key?(:login)
@script = args[:script] if args.key?(:script)
@security_level = args[:security_level] if args.key?(:security_level)
@url = args[:url] if args.key?(:url)
end
end
@ -1045,13 +1052,13 @@ module Google
# Update properties of this object
def update!(**args)
@disable_health_check = args[:disable_health_check] unless args[:disable_health_check].nil?
@host = args[:host] unless args[:host].nil?
@healthy_threshold = args[:healthy_threshold] unless args[:healthy_threshold].nil?
@unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil?
@restart_threshold = args[:restart_threshold] unless args[:restart_threshold].nil?
@check_interval = args[:check_interval] unless args[:check_interval].nil?
@timeout = args[:timeout] unless args[:timeout].nil?
@disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
@host = args[:host] if args.key?(:host)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
@restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
@check_interval = args[:check_interval] if args.key?(:check_interval)
@timeout = args[:timeout] if args.key?(:timeout)
end
end
@ -1084,9 +1091,9 @@ module Google
# Update properties of this object
def update!(**args)
@files = args[:files] unless args[:files].nil?
@container = args[:container] unless args[:container].nil?
@source_references = args[:source_references] unless args[:source_references].nil?
@files = args[:files] if args.key?(:files)
@container = args[:container] if args.key?(:container)
@source_references = args[:source_references] if args.key?(:source_references)
end
end
@ -1117,9 +1124,9 @@ module Google
# Update properties of this object
def update!(**args)
@source_url = args[:source_url] unless args[:source_url].nil?
@sha1_sum = args[:sha1_sum] unless args[:sha1_sum].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@source_url = args[:source_url] if args.key?(:source_url)
@sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
@ -1140,7 +1147,7 @@ module Google
# Update properties of this object
def update!(**args)
@image = args[:image] unless args[:image].nil?
@image = args[:image] if args.key?(:image)
end
end
@ -1168,8 +1175,8 @@ module Google
# Update properties of this object
def update!(**args)
@repository = args[:repository] unless args[:repository].nil?
@revision_id = args[:revision_id] unless args[:revision_id].nil?
@repository = args[:repository] if args.key?(:repository)
@revision_id = args[:revision_id] if args.key?(:revision_id)
end
end
@ -1253,11 +1260,11 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@metadata = args[:metadata] unless args[:metadata].nil?
@done = args[:done] unless args[:done].nil?
@error = args[:error] unless args[:error].nil?
@response = args[:response] unless args[:response].nil?
@name = args[:name] if args.key?(:name)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@response = args[:response] if args.key?(:response)
end
end
@ -1320,9 +1327,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@message = args[:message] unless args[:message].nil?
@details = args[:details] unless args[:details].nil?
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
@ -1346,8 +1353,8 @@ module Google
# Update properties of this object
def update!(**args)
@versions = args[:versions] unless args[:versions].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@versions = args[:versions] if args.key?(:versions)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1383,9 +1390,9 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@id = args[:id] unless args[:id].nil?
@split = args[:split] unless args[:split].nil?
@name = args[:name] if args.key?(:name)
@id = args[:id] if args.key?(:id)
@split = args[:split] if args.key?(:split)
end
end
@ -1420,8 +1427,8 @@ module Google
# Update properties of this object
def update!(**args)
@shard_by = args[:shard_by] unless args[:shard_by].nil?
@allocations = args[:allocations] unless args[:allocations].nil?
@shard_by = args[:shard_by] if args.key?(:shard_by)
@allocations = args[:allocations] if args.key?(:allocations)
end
end
@ -1445,8 +1452,8 @@ module Google
# Update properties of this object
def update!(**args)
@modules = args[:modules] unless args[:modules].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@modules = args[:modules] if args.key?(:modules)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1470,8 +1477,8 @@ module Google
# Update properties of this object
def update!(**args)
@operations = args[:operations] unless args[:operations].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1519,12 +1526,58 @@ module Google
# Update properties of this object
def update!(**args)
@operation_type = args[:operation_type] unless args[:operation_type].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@user = args[:user] unless args[:user].nil?
@target = args[:target] unless args[:target].nil?
@method_prop = args[:method_prop] unless args[:method_prop].nil?
@operation_type = args[:operation_type] if args.key?(:operation_type)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@end_time = args[:end_time] if args.key?(:end_time)
@user = args[:user] if args.key?(:user)
@target = args[:target] if args.key?(:target)
@method_prop = args[:method_prop] if args.key?(:method_prop)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1Beta5
include Google::Apis::Core::Hashable
# API method name that initiated the operation. Example: "google.appengine.
# v1beta5.Version.CreateVersion". @OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Timestamp that this operation was received. @OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# Timestamp that this operation was completed. (Not present if the operation is
# still in progress.) @OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# The user who requested this operation. @OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
# Resource that this operation is acting on. Example: "apps/myapp/services/
# default". @OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@end_time = args[:end_time] if args.key?(:end_time)
@user = args[:user] if args.key?(:user)
@target = args[:target] if args.key?(:target)
end
end
end

View File

@ -154,6 +154,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadataV1Beta5
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -163,6 +167,7 @@ module Google
property :location, as: 'location'
property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket'
end
end
@ -521,6 +526,17 @@ module Google
property :method_prop, as: 'method'
end
end
class OperationMetadataV1Beta5
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
end
end
end
end
end

View File

@ -53,8 +53,9 @@ module Google
# @param [Boolean] ensure_resources_exist
# Certain resources associated with an application are created on-demand.
# Controls whether these resources should be created when performing the `GET`
# operation. If specified and any resources cloud not be created, the request
# will fail with an error code.
# operation. If specified and any resources could not be created, the request
# will fail with an error code. Additionally, this parameter can cause the
# request to take longer to complete.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/appengine_v1beta5/service.rb'
require 'google/apis/appengine_v1beta5/classes.rb'
require 'google/apis/appengine_v1beta5/representations.rb'
module Google
module Apis
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
#
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5
VERSION = 'V1beta5'
REVISION = '20160121'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,525 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta5
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UrlDispatchRule
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Version
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class AutomaticScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CpuUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class RequestUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class NetworkUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BasicScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Network
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ScriptHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ApiEndpointHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ErrorHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Library
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ApiConfigHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Deployment
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FileInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ContainerInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SourceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Service
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class TrafficSplit
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListServicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadataV1Beta5
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::AppengineV1beta5::Status, decorator: Google::Apis::AppengineV1beta5::Status::Representation
hash :response, as: 'response'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta5::Operation, decorator: Google::Apis::AppengineV1beta5::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1beta5::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta5::UrlDispatchRule::Representation
property :location, as: 'location'
property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket'
end
end
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain'
property :path, as: 'path'
property :service, as: 'service'
end
end
class Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1beta5::AutomaticScaling, decorator: Google::Apis::AppengineV1beta5::AutomaticScaling::Representation
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta5::BasicScaling, decorator: Google::Apis::AppengineV1beta5::BasicScaling::Representation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta5::ManualScaling, decorator: Google::Apis::AppengineV1beta5::ManualScaling::Representation
collection :inbound_services, as: 'inboundServices'
property :instance_class, as: 'instanceClass'
property :network, as: 'network', class: Google::Apis::AppengineV1beta5::Network, decorator: Google::Apis::AppengineV1beta5::Network::Representation
property :resources, as: 'resources', class: Google::Apis::AppengineV1beta5::Resources, decorator: Google::Apis::AppengineV1beta5::Resources::Representation
property :runtime, as: 'runtime'
property :threadsafe, as: 'threadsafe'
property :vm, as: 'vm'
hash :beta_settings, as: 'betaSettings'
property :env, as: 'env'
property :serving_status, as: 'servingStatus'
property :deployer, as: 'deployer'
property :creation_time, as: 'creationTime'
property :disk_usage_bytes, as: 'diskUsageBytes'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta5::UrlMap, decorator: Google::Apis::AppengineV1beta5::UrlMap::Representation
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta5::ErrorHandler, decorator: Google::Apis::AppengineV1beta5::ErrorHandler::Representation
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta5::Library, decorator: Google::Apis::AppengineV1beta5::Library::Representation
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta5::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta5::ApiConfigHandler::Representation
hash :env_variables, as: 'envVariables'
property :default_expiration, as: 'defaultExpiration'
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta5::HealthCheck, decorator: Google::Apis::AppengineV1beta5::HealthCheck::Representation
property :nobuild_files_regex, as: 'nobuildFilesRegex'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta5::Deployment, decorator: Google::Apis::AppengineV1beta5::Deployment::Representation
end
end
class AutomaticScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cool_down_period, as: 'coolDownPeriod'
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1beta5::CpuUtilization, decorator: Google::Apis::AppengineV1beta5::CpuUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests'
property :max_idle_instances, as: 'maxIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :max_pending_latency, as: 'maxPendingLatency'
property :min_idle_instances, as: 'minIdleInstances'
property :min_total_instances, as: 'minTotalInstances'
property :min_pending_latency, as: 'minPendingLatency'
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1beta5::RequestUtilization, decorator: Google::Apis::AppengineV1beta5::RequestUtilization::Representation
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta5::DiskUtilization, decorator: Google::Apis::AppengineV1beta5::DiskUtilization::Representation
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta5::NetworkUtilization, decorator: Google::Apis::AppengineV1beta5::NetworkUtilization::Representation
end
end
class CpuUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_window_length, as: 'aggregationWindowLength'
property :target_utilization, as: 'targetUtilization'
end
end
class RequestUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_request_count_per_sec, as: 'targetRequestCountPerSec'
property :target_concurrent_requests, as: 'targetConcurrentRequests'
end
end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_bytes_per_sec, as: 'targetWriteBytesPerSec'
property :target_write_ops_per_sec, as: 'targetWriteOpsPerSec'
property :target_read_bytes_per_sec, as: 'targetReadBytesPerSec'
property :target_read_ops_per_sec, as: 'targetReadOpsPerSec'
end
end
class NetworkUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_bytes_per_sec, as: 'targetSentBytesPerSec'
property :target_sent_packets_per_sec, as: 'targetSentPacketsPerSec'
property :target_received_bytes_per_sec, as: 'targetReceivedBytesPerSec'
property :target_received_packets_per_sec, as: 'targetReceivedPacketsPerSec'
end
end
class BasicScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :idle_timeout, as: 'idleTimeout'
property :max_instances, as: 'maxInstances'
end
end
class ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instances, as: 'instances'
end
end
class Network
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :name, as: 'name'
end
end
class Resources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu, as: 'cpu'
property :disk_gb, as: 'diskGb'
property :memory_gb, as: 'memoryGb'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url_regex, as: 'urlRegex'
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1beta5::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta5::StaticFilesHandler::Representation
property :script, as: 'script', class: Google::Apis::AppengineV1beta5::ScriptHandler, decorator: Google::Apis::AppengineV1beta5::ScriptHandler::Representation
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta5::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta5::ApiEndpointHandler::Representation
property :security_level, as: 'securityLevel'
property :login, as: 'login'
property :auth_fail_action, as: 'authFailAction'
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
end
end
class StaticFilesHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :upload_path_regex, as: 'uploadPathRegex'
hash :http_headers, as: 'httpHeaders'
property :mime_type, as: 'mimeType'
property :expiration, as: 'expiration'
property :require_matching_file, as: 'requireMatchingFile'
property :application_readable, as: 'applicationReadable'
end
end
class ScriptHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ApiEndpointHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_path, as: 'scriptPath'
end
end
class ErrorHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :static_file, as: 'staticFile'
property :mime_type, as: 'mimeType'
end
end
class Library
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :version, as: 'version'
end
end
class ApiConfigHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_fail_action, as: 'authFailAction'
property :login, as: 'login'
property :script, as: 'script'
property :security_level, as: 'securityLevel'
property :url, as: 'url'
end
end
class HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host'
property :healthy_threshold, as: 'healthyThreshold'
property :unhealthy_threshold, as: 'unhealthyThreshold'
property :restart_threshold, as: 'restartThreshold'
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
end
end
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files', class: Google::Apis::AppengineV1beta5::FileInfo, decorator: Google::Apis::AppengineV1beta5::FileInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1beta5::ContainerInfo, decorator: Google::Apis::AppengineV1beta5::ContainerInfo::Representation
collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta5::SourceReference, decorator: Google::Apis::AppengineV1beta5::SourceReference::Representation
end
end
class FileInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_url, as: 'sourceUrl'
property :sha1_sum, as: 'sha1Sum'
property :mime_type, as: 'mimeType'
end
end
class ContainerInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image'
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
class ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta5::Version, decorator: Google::Apis::AppengineV1beta5::Version::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :split, as: 'split', class: Google::Apis::AppengineV1beta5::TrafficSplit, decorator: Google::Apis::AppengineV1beta5::TrafficSplit::Representation
end
end
class TrafficSplit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :shard_by, as: 'shardBy'
hash :allocations, as: 'allocations'
end
end
class ListServicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :services, as: 'services', class: Google::Apis::AppengineV1beta5::Service, decorator: Google::Apis::AppengineV1beta5::Service::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
property :method_prop, as: 'method'
end
end
class OperationMetadataV1Beta5
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
end
end
end
end
end

View File

@ -0,0 +1,478 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppengineV1beta5
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
#
# @example
# require 'google/apis/appengine_v1beta5'
#
# Appengine = Google::Apis::AppengineV1beta5 # Alias the module
# service = Appengine::AppengineService.new
#
# @see https://cloud.google.com/appengine/docs/admin-api/
class AppengineService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://appengine.googleapis.com/', '')
end
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the application to get. For example: "apps/myapp".
# @param [Boolean] ensure_resources_exist
# Certain resources associated with an application are created on-demand.
# Controls whether these resources should be created when performing the `GET`
# operation. If specified and any resources could not be created, the request
# will fail with an error code. Additionally, this parameter can cause the
# request to take longer to complete. Note: This parameter will be deprecated in
# a future version of the API.
# @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::AppengineV1beta5::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Application]
#
# @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_app(apps_id, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Application::Representation
command.response_class = Google::Apis::AppengineV1beta5::Application
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['ensureResourcesExist'] = ensure_resources_exist unless ensure_resources_exist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id
# Part of `name`. The name of the operation resource.
# @param [String] operations_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['operationsId'] = operations_id unless operations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding below allows API services to override the binding to use different
# resource name schemes, such as `users/*/operations`.
# @param [String] apps_id
# Part of `name`. The name of the operation collection.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::AppengineV1beta5::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListOperationsResponse]
#
# @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_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a service and all enclosed versions.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the current configuration of the service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1beta5::Service] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Service]
#
# @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_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Service::Representation
command.response_class = Google::Apis::AppengineV1beta5::Service
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the services in the application.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp".
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @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::AppengineV1beta5::ListServicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListServicesResponse]
#
# @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_app_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListServicesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::Service] service_object
# @param [String] mask
# Standard field mask for the set of fields to be updated.
# @param [Boolean] migrate_traffic
# Whether to use Traffic Migration to shift traffic gradually. Traffic can only
# be migrated from a single version to another single version.
# @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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_app_service(apps_id, services_id, service_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Service::Representation
command.request_object = service_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['mask'] = mask unless mask.nil?
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deploys new code and resource files to a version.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::Version] version_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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an existing version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default/versions/v1".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets application deployment information.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default/versions/v1".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the `Get` response.
# @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::AppengineV1beta5::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Version]
#
# @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_app_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.response_class = Google::Apis::AppengineV1beta5::Version
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the versions of a service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the `List` response.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @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::AppengineV1beta5::ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListVersionsResponse]
#
# @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_app_service_versions(apps_id, services_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListVersionsResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListVersionsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['view'] = view unless view.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -44,8 +44,8 @@ module Google
# Update properties of this object
def update!(**args)
@combined_event = args[:combined_event] unless args[:combined_event].nil?
@single_events = args[:single_events] unless args[:single_events].nil?
@combined_event = args[:combined_event] if args.key?(:combined_event)
@single_events = args[:single_events] if args.key?(:single_events)
end
end
@ -109,15 +109,15 @@ module Google
# Update properties of this object
def update!(**args)
@additional_event_types = args[:additional_event_types] unless args[:additional_event_types].nil?
@event_time_millis = args[:event_time_millis] unless args[:event_time_millis].nil?
@from_user_deletion = args[:from_user_deletion] unless args[:from_user_deletion].nil?
@move = args[:move] unless args[:move].nil?
@permission_changes = args[:permission_changes] unless args[:permission_changes].nil?
@primary_event_type = args[:primary_event_type] unless args[:primary_event_type].nil?
@rename = args[:rename] unless args[:rename].nil?
@target = args[:target] unless args[:target].nil?
@user = args[:user] unless args[:user].nil?
@additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types)
@event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis)
@from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion)
@move = args[:move] if args.key?(:move)
@permission_changes = args[:permission_changes] if args.key?(:permission_changes)
@primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type)
@rename = args[:rename] if args.key?(:rename)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
@ -142,8 +142,8 @@ module Google
# Update properties of this object
def update!(**args)
@activities = args[:activities] unless args[:activities].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@activities = args[:activities] if args.key?(:activities)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -168,8 +168,8 @@ module Google
# Update properties of this object
def update!(**args)
@added_parents = args[:added_parents] unless args[:added_parents].nil?
@removed_parents = args[:removed_parents] unless args[:removed_parents].nil?
@added_parents = args[:added_parents] if args.key?(:added_parents)
@removed_parents = args[:removed_parents] if args.key?(:removed_parents)
end
end
@ -200,9 +200,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@is_root = args[:is_root] unless args[:is_root].nil?
@title = args[:title] unless args[:title].nil?
@id = args[:id] if args.key?(:id)
@is_root = args[:is_root] if args.key?(:is_root)
@title = args[:title] if args.key?(:title)
end
end
@ -251,12 +251,12 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@role = args[:role] unless args[:role].nil?
@type = args[:type] unless args[:type].nil?
@user = args[:user] unless args[:user].nil?
@with_link = args[:with_link] unless args[:with_link].nil?
@name = args[:name] if args.key?(:name)
@permission_id = args[:permission_id] if args.key?(:permission_id)
@role = args[:role] if args.key?(:role)
@type = args[:type] if args.key?(:type)
@user = args[:user] if args.key?(:user)
@with_link = args[:with_link] if args.key?(:with_link)
end
end
@ -281,8 +281,8 @@ module Google
# Update properties of this object
def update!(**args)
@added_permissions = args[:added_permissions] unless args[:added_permissions].nil?
@removed_permissions = args[:removed_permissions] unless args[:removed_permissions].nil?
@added_permissions = args[:added_permissions] if args.key?(:added_permissions)
@removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions)
end
end
@ -301,7 +301,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
@ -325,8 +325,8 @@ module Google
# Update properties of this object
def update!(**args)
@new_title = args[:new_title] unless args[:new_title].nil?
@old_title = args[:old_title] unless args[:old_title].nil?
@new_title = args[:new_title] if args.key?(:new_title)
@old_title = args[:old_title] if args.key?(:old_title)
end
end
@ -357,9 +357,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@name = args[:name] if args.key?(:name)
end
end
@ -383,8 +383,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@photo = args[:photo] unless args[:photo].nil?
@name = args[:name] if args.key?(:name)
@photo = args[:photo] if args.key?(:photo)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20160119'
REVISION = '20160121'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -53,10 +53,10 @@ module Google
# Update properties of this object
def update!(**args)
@current_state_version = args[:current_state_version] unless args[:current_state_version].nil?
@data = args[:data] unless args[:data].nil?
@kind = args[:kind] unless args[:kind].nil?
@state_key = args[:state_key] unless args[:state_key].nil?
@current_state_version = args[:current_state_version] if args.key?(:current_state_version)
@data = args[:data] if args.key?(:data)
@kind = args[:kind] if args.key?(:kind)
@state_key = args[:state_key] if args.key?(:state_key)
end
end
@ -86,9 +86,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@maximum_key_count = args[:maximum_key_count] unless args[:maximum_key_count].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@maximum_key_count = args[:maximum_key_count] if args.key?(:maximum_key_count)
end
end
@ -113,8 +113,8 @@ module Google
# Update properties of this object
def update!(**args)
@data = args[:data] unless args[:data].nil?
@kind = args[:kind] unless args[:kind].nil?
@data = args[:data] if args.key?(:data)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -144,9 +144,9 @@ module Google
# Update properties of this object
def update!(**args)
@current_state_version = args[:current_state_version] unless args[:current_state_version].nil?
@kind = args[:kind] unless args[:kind].nil?
@state_key = args[:state_key] unless args[:state_key].nil?
@current_state_version = args[:current_state_version] if args.key?(:current_state_version)
@kind = args[:kind] if args.key?(:kind)
@state_key = args[:state_key] if args.key?(:state_key)
end
end
end

View File

@ -74,14 +74,14 @@ module Google
# Update properties of this object
def update!(**args)
@autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].nil?
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@target = args[:target] unless args[:target].nil?
@autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
@target = args[:target] if args.key?(:target)
end
end
@ -110,9 +110,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -160,12 +160,12 @@ module Google
# Update properties of this object
def update!(**args)
@cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil?
@cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil?
@custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil?
@load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil?
@max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil?
@min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil?
@cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec)
@cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
@custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations)
@load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization)
@max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas)
@min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
end
end
@ -187,7 +187,7 @@ module Google
# Update properties of this object
def update!(**args)
@utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end
end
@ -221,9 +221,9 @@ module Google
# Update properties of this object
def update!(**args)
@metric = args[:metric] unless args[:metric].nil?
@utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
@utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil?
@metric = args[:metric] if args.key?(:metric)
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
@utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type)
end
end
@ -247,7 +247,7 @@ module Google
# Update properties of this object
def update!(**args)
@utilization_target = args[:utilization_target] unless args[:utilization_target].nil?
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
end
end
@ -286,11 +286,11 @@ module Google
# Update properties of this object
def update!(**args)
@deleted = args[:deleted] unless args[:deleted].nil?
@deprecated = args[:deprecated] unless args[:deprecated].nil?
@obsolete = args[:obsolete] unless args[:obsolete].nil?
@replacement = args[:replacement] unless args[:replacement].nil?
@state = args[:state] unless args[:state].nil?
@deleted = args[:deleted] if args.key?(:deleted)
@deprecated = args[:deprecated] if args.key?(:deprecated)
@obsolete = args[:obsolete] if args.key?(:obsolete)
@replacement = args[:replacement] if args.key?(:replacement)
@state = args[:state] if args.key?(:state)
end
end
@ -415,28 +415,28 @@ module Google
# Update properties of this object
def update!(**args)
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@error = args[:error] unless args[:error].nil?
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@operation_type = args[:operation_type] unless args[:operation_type].nil?
@progress = args[:progress] unless args[:progress].nil?
@region = args[:region] unless args[:region].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@status = args[:status] unless args[:status].nil?
@status_message = args[:status_message] unless args[:status_message].nil?
@target_id = args[:target_id] unless args[:target_id].nil?
@target_link = args[:target_link] unless args[:target_link].nil?
@user = args[:user] unless args[:user].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@zone = args[:zone] unless args[:zone].nil?
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@end_time = args[:end_time] if args.key?(:end_time)
@error = args[:error] if args.key?(:error)
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@progress = args[:progress] if args.key?(:progress)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@target_id = args[:target_id] if args.key?(:target_id)
@target_link = args[:target_link] if args.key?(:target_link)
@user = args[:user] if args.key?(:user)
@warnings = args[:warnings] if args.key?(:warnings)
@zone = args[:zone] if args.key?(:zone)
end
#
@ -454,7 +454,7 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@errors = args[:errors] if args.key?(:errors)
end
#
@ -482,9 +482,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@location = args[:location] unless args[:location].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
@ -514,9 +514,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -539,8 +539,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
@ -582,11 +582,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -650,16 +650,16 @@ module Google
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@deprecated = args[:deprecated] unless args[:deprecated].nil?
@description = args[:description] unless args[:description].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@maintenance_windows = args[:maintenance_windows] unless args[:maintenance_windows].nil?
@name = args[:name] unless args[:name].nil?
@region = args[:region] unless args[:region].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
#
@ -692,10 +692,10 @@ module Google
# Update properties of this object
def update!(**args)
@begin_time = args[:begin_time] unless args[:begin_time].nil?
@description = args[:description] unless args[:description].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@name = args[:name] unless args[:name].nil?
@begin_time = args[:begin_time] if args.key?(:begin_time)
@description = args[:description] if args.key?(:description)
@end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name)
end
end
end
@ -735,11 +735,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
end

View File

@ -84,12 +84,12 @@ module Google
# Update properties of this object
def update!(**args)
@allow_jagged_rows = args[:allow_jagged_rows] unless args[:allow_jagged_rows].nil?
@allow_quoted_newlines = args[:allow_quoted_newlines] unless args[:allow_quoted_newlines].nil?
@encoding = args[:encoding] unless args[:encoding].nil?
@field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil?
@quote = args[:quote] unless args[:quote].nil?
@skip_leading_rows = args[:skip_leading_rows] unless args[:skip_leading_rows].nil?
@allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows)
@allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines)
@encoding = args[:encoding] if args.key?(:encoding)
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
@quote = args[:quote] if args.key?(:quote)
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
end
end
@ -186,18 +186,18 @@ module Google
# Update properties of this object
def update!(**args)
@access = args[:access] unless args[:access].nil?
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@dataset_reference = args[:dataset_reference] unless args[:dataset_reference].nil?
@default_table_expiration_ms = args[:default_table_expiration_ms] unless args[:default_table_expiration_ms].nil?
@description = args[:description] unless args[:description].nil?
@etag = args[:etag] unless args[:etag].nil?
@friendly_name = args[:friendly_name] unless args[:friendly_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil?
@location = args[:location] unless args[:location].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@access = args[:access] if args.key?(:access)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
@default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
@location = args[:location] if args.key?(:location)
@self_link = args[:self_link] if args.key?(:self_link)
end
#
@ -251,12 +251,12 @@ module Google
# Update properties of this object
def update!(**args)
@domain = args[:domain] unless args[:domain].nil?
@group_by_email = args[:group_by_email] unless args[:group_by_email].nil?
@role = args[:role] unless args[:role].nil?
@special_group = args[:special_group] unless args[:special_group].nil?
@user_by_email = args[:user_by_email] unless args[:user_by_email].nil?
@view = args[:view] unless args[:view].nil?
@domain = args[:domain] if args.key?(:domain)
@group_by_email = args[:group_by_email] if args.key?(:group_by_email)
@role = args[:role] if args.key?(:role)
@special_group = args[:special_group] if args.key?(:special_group)
@user_by_email = args[:user_by_email] if args.key?(:user_by_email)
@view = args[:view] if args.key?(:view)
end
end
end
@ -296,10 +296,10 @@ module Google
# Update properties of this object
def update!(**args)
@datasets = args[:datasets] unless args[:datasets].nil?
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@datasets = args[:datasets] if args.key?(:datasets)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
#
@ -333,10 +333,10 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_reference = args[:dataset_reference] unless args[:dataset_reference].nil?
@friendly_name = args[:friendly_name] unless args[:friendly_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
end
end
end
@ -363,8 +363,8 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
@ -399,10 +399,10 @@ module Google
# Update properties of this object
def update!(**args)
@debug_info = args[:debug_info] unless args[:debug_info].nil?
@location = args[:location] unless args[:location].nil?
@message = args[:message] unless args[:message].nil?
@reason = args[:reason] unless args[:reason].nil?
@debug_info = args[:debug_info] if args.key?(:debug_info)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
@reason = args[:reason] if args.key?(:reason)
end
end
@ -482,19 +482,19 @@ module Google
# Update properties of this object
def update!(**args)
@compute_ratio_avg = args[:compute_ratio_avg] unless args[:compute_ratio_avg].nil?
@compute_ratio_max = args[:compute_ratio_max] unless args[:compute_ratio_max].nil?
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@read_ratio_avg = args[:read_ratio_avg] unless args[:read_ratio_avg].nil?
@read_ratio_max = args[:read_ratio_max] unless args[:read_ratio_max].nil?
@records_read = args[:records_read] unless args[:records_read].nil?
@records_written = args[:records_written] unless args[:records_written].nil?
@steps = args[:steps] unless args[:steps].nil?
@wait_ratio_avg = args[:wait_ratio_avg] unless args[:wait_ratio_avg].nil?
@wait_ratio_max = args[:wait_ratio_max] unless args[:wait_ratio_max].nil?
@write_ratio_avg = args[:write_ratio_avg] unless args[:write_ratio_avg].nil?
@write_ratio_max = args[:write_ratio_max] unless args[:write_ratio_max].nil?
@compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
@compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
@read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
@records_read = args[:records_read] if args.key?(:records_read)
@records_written = args[:records_written] if args.key?(:records_written)
@steps = args[:steps] if args.key?(:steps)
@wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
@wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
@write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg)
@write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max)
end
end
@ -518,8 +518,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@substeps = args[:substeps] unless args[:substeps].nil?
@kind = args[:kind] if args.key?(:kind)
@substeps = args[:substeps] if args.key?(:substeps)
end
end
@ -589,13 +589,13 @@ module Google
# Update properties of this object
def update!(**args)
@compression = args[:compression] unless args[:compression].nil?
@csv_options = args[:csv_options] unless args[:csv_options].nil?
@ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil?
@max_bad_records = args[:max_bad_records] unless args[:max_bad_records].nil?
@schema = args[:schema] unless args[:schema].nil?
@source_format = args[:source_format] unless args[:source_format].nil?
@source_uris = args[:source_uris] unless args[:source_uris].nil?
@compression = args[:compression] if args.key?(:compression)
@csv_options = args[:csv_options] if args.key?(:csv_options)
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
@schema = args[:schema] if args.key?(:schema)
@source_format = args[:source_format] if args.key?(:source_format)
@source_uris = args[:source_uris] if args.key?(:source_uris)
end
end
@ -678,17 +678,17 @@ module Google
# Update properties of this object
def update!(**args)
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
@errors = args[:errors] unless args[:errors].nil?
@etag = args[:etag] unless args[:etag].nil?
@job_complete = args[:job_complete] unless args[:job_complete].nil?
@job_reference = args[:job_reference] unless args[:job_reference].nil?
@kind = args[:kind] unless args[:kind].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@rows = args[:rows] unless args[:rows].nil?
@schema = args[:schema] unless args[:schema].nil?
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
@total_rows = args[:total_rows] unless args[:total_rows].nil?
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@errors = args[:errors] if args.key?(:errors)
@etag = args[:etag] if args.key?(:etag)
@job_complete = args[:job_complete] if args.key?(:job_complete)
@job_reference = args[:job_reference] if args.key?(:job_reference)
@kind = args[:kind] if args.key?(:kind)
@page_token = args[:page_token] if args.key?(:page_token)
@rows = args[:rows] if args.key?(:rows)
@schema = args[:schema] if args.key?(:schema)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@total_rows = args[:total_rows] if args.key?(:total_rows)
end
end
@ -749,15 +749,15 @@ module Google
# Update properties of this object
def update!(**args)
@configuration = args[:configuration] unless args[:configuration].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@job_reference = args[:job_reference] unless args[:job_reference].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@statistics = args[:statistics] unless args[:statistics].nil?
@status = args[:status] unless args[:status].nil?
@user_email = args[:user_email] unless args[:user_email].nil?
@configuration = args[:configuration] if args.key?(:configuration)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@job_reference = args[:job_reference] if args.key?(:job_reference)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
@statistics = args[:statistics] if args.key?(:statistics)
@status = args[:status] if args.key?(:status)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
@ -781,8 +781,8 @@ module Google
# Update properties of this object
def update!(**args)
@job = args[:job] unless args[:job].nil?
@kind = args[:kind] unless args[:kind].nil?
@job = args[:job] if args.key?(:job)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -825,11 +825,11 @@ module Google
# Update properties of this object
def update!(**args)
@copy = args[:copy] unless args[:copy].nil?
@dry_run = args[:dry_run] unless args[:dry_run].nil?
@extract = args[:extract] unless args[:extract].nil?
@load = args[:load] unless args[:load].nil?
@query = args[:query] unless args[:query].nil?
@copy = args[:copy] if args.key?(:copy)
@dry_run = args[:dry_run] if args.key?(:dry_run)
@extract = args[:extract] if args.key?(:extract)
@load = args[:load] if args.key?(:load)
@query = args[:query] if args.key?(:query)
end
end
@ -885,13 +885,13 @@ module Google
# Update properties of this object
def update!(**args)
@compression = args[:compression] unless args[:compression].nil?
@destination_format = args[:destination_format] unless args[:destination_format].nil?
@destination_uri = args[:destination_uri] unless args[:destination_uri].nil?
@destination_uris = args[:destination_uris] unless args[:destination_uris].nil?
@field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil?
@print_header = args[:print_header] unless args[:print_header].nil?
@source_table = args[:source_table] unless args[:source_table].nil?
@compression = args[:compression] if args.key?(:compression)
@destination_format = args[:destination_format] if args.key?(:destination_format)
@destination_uri = args[:destination_uri] if args.key?(:destination_uri)
@destination_uris = args[:destination_uris] if args.key?(:destination_uris)
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
@print_header = args[:print_header] if args.key?(:print_header)
@source_table = args[:source_table] if args.key?(:source_table)
end
end
@ -1047,23 +1047,23 @@ module Google
# Update properties of this object
def update!(**args)
@allow_jagged_rows = args[:allow_jagged_rows] unless args[:allow_jagged_rows].nil?
@allow_quoted_newlines = args[:allow_quoted_newlines] unless args[:allow_quoted_newlines].nil?
@create_disposition = args[:create_disposition] unless args[:create_disposition].nil?
@destination_table = args[:destination_table] unless args[:destination_table].nil?
@encoding = args[:encoding] unless args[:encoding].nil?
@field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil?
@ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil?
@max_bad_records = args[:max_bad_records] unless args[:max_bad_records].nil?
@projection_fields = args[:projection_fields] unless args[:projection_fields].nil?
@quote = args[:quote] unless args[:quote].nil?
@schema = args[:schema] unless args[:schema].nil?
@schema_inline = args[:schema_inline] unless args[:schema_inline].nil?
@schema_inline_format = args[:schema_inline_format] unless args[:schema_inline_format].nil?
@skip_leading_rows = args[:skip_leading_rows] unless args[:skip_leading_rows].nil?
@source_format = args[:source_format] unless args[:source_format].nil?
@source_uris = args[:source_uris] unless args[:source_uris].nil?
@write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
@allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows)
@allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines)
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
@destination_table = args[:destination_table] if args.key?(:destination_table)
@encoding = args[:encoding] if args.key?(:encoding)
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@quote = args[:quote] if args.key?(:quote)
@schema = args[:schema] if args.key?(:schema)
@schema_inline = args[:schema_inline] if args.key?(:schema_inline)
@schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
@source_format = args[:source_format] if args.key?(:source_format)
@source_uris = args[:source_uris] if args.key?(:source_uris)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end
end
@ -1171,19 +1171,19 @@ module Google
# Update properties of this object
def update!(**args)
@allow_large_results = args[:allow_large_results] unless args[:allow_large_results].nil?
@create_disposition = args[:create_disposition] unless args[:create_disposition].nil?
@default_dataset = args[:default_dataset] unless args[:default_dataset].nil?
@destination_table = args[:destination_table] unless args[:destination_table].nil?
@flatten_results = args[:flatten_results] unless args[:flatten_results].nil?
@maximum_billing_tier = args[:maximum_billing_tier] unless args[:maximum_billing_tier].nil?
@preserve_nulls = args[:preserve_nulls] unless args[:preserve_nulls].nil?
@priority = args[:priority] unless args[:priority].nil?
@query = args[:query] unless args[:query].nil?
@table_definitions = args[:table_definitions] unless args[:table_definitions].nil?
@use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil?
@user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
@write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
@allow_large_results = args[:allow_large_results] if args.key?(:allow_large_results)
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
@default_dataset = args[:default_dataset] if args.key?(:default_dataset)
@destination_table = args[:destination_table] if args.key?(:destination_table)
@flatten_results = args[:flatten_results] if args.key?(:flatten_results)
@maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier)
@preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
@priority = args[:priority] if args.key?(:priority)
@query = args[:query] if args.key?(:query)
@table_definitions = args[:table_definitions] if args.key?(:table_definitions)
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
@user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end
end
@ -1234,11 +1234,11 @@ module Google
# Update properties of this object
def update!(**args)
@create_disposition = args[:create_disposition] unless args[:create_disposition].nil?
@destination_table = args[:destination_table] unless args[:destination_table].nil?
@source_table = args[:source_table] unless args[:source_table].nil?
@source_tables = args[:source_tables] unless args[:source_tables].nil?
@write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
@destination_table = args[:destination_table] if args.key?(:destination_table)
@source_table = args[:source_table] if args.key?(:source_table)
@source_tables = args[:source_tables] if args.key?(:source_tables)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end
end
@ -1272,10 +1272,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@jobs = args[:jobs] unless args[:jobs].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@jobs = args[:jobs] if args.key?(:jobs)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
#
@ -1335,15 +1335,15 @@ module Google
# Update properties of this object
def update!(**args)
@configuration = args[:configuration] unless args[:configuration].nil?
@error_result = args[:error_result] unless args[:error_result].nil?
@id = args[:id] unless args[:id].nil?
@job_reference = args[:job_reference] unless args[:job_reference].nil?
@kind = args[:kind] unless args[:kind].nil?
@state = args[:state] unless args[:state].nil?
@statistics = args[:statistics] unless args[:statistics].nil?
@status = args[:status] unless args[:status].nil?
@user_email = args[:user_email] unless args[:user_email].nil?
@configuration = args[:configuration] if args.key?(:configuration)
@error_result = args[:error_result] if args.key?(:error_result)
@id = args[:id] if args.key?(:id)
@job_reference = args[:job_reference] if args.key?(:job_reference)
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
@statistics = args[:statistics] if args.key?(:statistics)
@status = args[:status] if args.key?(:status)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
end
@ -1370,8 +1370,8 @@ module Google
# Update properties of this object
def update!(**args)
@job_id = args[:job_id] unless args[:job_id].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@job_id = args[:job_id] if args.key?(:job_id)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
@ -1425,13 +1425,13 @@ module Google
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@extract = args[:extract] unless args[:extract].nil?
@load = args[:load] unless args[:load].nil?
@query = args[:query] unless args[:query].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
@creation_time = args[:creation_time] if args.key?(:creation_time)
@end_time = args[:end_time] if args.key?(:end_time)
@extract = args[:extract] if args.key?(:extract)
@load = args[:load] if args.key?(:load)
@query = args[:query] if args.key?(:query)
@start_time = args[:start_time] if args.key?(:start_time)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
end
end
@ -1472,11 +1472,11 @@ module Google
# Update properties of this object
def update!(**args)
@billing_tier = args[:billing_tier] unless args[:billing_tier].nil?
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
@query_plan = args[:query_plan] unless args[:query_plan].nil?
@total_bytes_billed = args[:total_bytes_billed] unless args[:total_bytes_billed].nil?
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
@billing_tier = args[:billing_tier] if args.key?(:billing_tier)
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@query_plan = args[:query_plan] if args.key?(:query_plan)
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
end
end
@ -1512,10 +1512,10 @@ module Google
# Update properties of this object
def update!(**args)
@input_file_bytes = args[:input_file_bytes] unless args[:input_file_bytes].nil?
@input_files = args[:input_files] unless args[:input_files].nil?
@output_bytes = args[:output_bytes] unless args[:output_bytes].nil?
@output_rows = args[:output_rows] unless args[:output_rows].nil?
@input_file_bytes = args[:input_file_bytes] if args.key?(:input_file_bytes)
@input_files = args[:input_files] if args.key?(:input_files)
@output_bytes = args[:output_bytes] if args.key?(:output_bytes)
@output_rows = args[:output_rows] if args.key?(:output_rows)
end
end
@ -1536,7 +1536,7 @@ module Google
# Update properties of this object
def update!(**args)
@destination_uri_file_counts = args[:destination_uri_file_counts] unless args[:destination_uri_file_counts].nil?
@destination_uri_file_counts = args[:destination_uri_file_counts] if args.key?(:destination_uri_file_counts)
end
end
@ -1567,9 +1567,9 @@ module Google
# Update properties of this object
def update!(**args)
@error_result = args[:error_result] unless args[:error_result].nil?
@errors = args[:errors] unless args[:errors].nil?
@state = args[:state] unless args[:state].nil?
@error_result = args[:error_result] if args.key?(:error_result)
@errors = args[:errors] if args.key?(:errors)
@state = args[:state] if args.key?(:state)
end
end
@ -1608,11 +1608,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@projects = args[:projects] unless args[:projects].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@projects = args[:projects] if args.key?(:projects)
@total_items = args[:total_items] if args.key?(:total_items)
end
#
@ -1650,11 +1650,11 @@ module Google
# Update properties of this object
def update!(**args)
@friendly_name = args[:friendly_name] unless args[:friendly_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@numeric_id = args[:numeric_id] unless args[:numeric_id].nil?
@project_reference = args[:project_reference] unless args[:project_reference].nil?
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@numeric_id = args[:numeric_id] if args.key?(:numeric_id)
@project_reference = args[:project_reference] if args.key?(:project_reference)
end
end
end
@ -1675,7 +1675,7 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@project_id = args[:project_id] if args.key?(:project_id)
end
end
@ -1750,14 +1750,14 @@ module Google
# Update properties of this object
def update!(**args)
@default_dataset = args[:default_dataset] unless args[:default_dataset].nil?
@dry_run = args[:dry_run] unless args[:dry_run].nil?
@kind = args[:kind] unless args[:kind].nil?
@max_results = args[:max_results] unless args[:max_results].nil?
@preserve_nulls = args[:preserve_nulls] unless args[:preserve_nulls].nil?
@query = args[:query] unless args[:query].nil?
@timeout_ms = args[:timeout_ms] unless args[:timeout_ms].nil?
@use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil?
@default_dataset = args[:default_dataset] if args.key?(:default_dataset)
@dry_run = args[:dry_run] if args.key?(:dry_run)
@kind = args[:kind] if args.key?(:kind)
@max_results = args[:max_results] if args.key?(:max_results)
@preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
@query = args[:query] if args.key?(:query)
@timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
end
end
@ -1834,16 +1834,16 @@ module Google
# Update properties of this object
def update!(**args)
@cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
@errors = args[:errors] unless args[:errors].nil?
@job_complete = args[:job_complete] unless args[:job_complete].nil?
@job_reference = args[:job_reference] unless args[:job_reference].nil?
@kind = args[:kind] unless args[:kind].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@rows = args[:rows] unless args[:rows].nil?
@schema = args[:schema] unless args[:schema].nil?
@total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil?
@total_rows = args[:total_rows] unless args[:total_rows].nil?
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@errors = args[:errors] if args.key?(:errors)
@job_complete = args[:job_complete] if args.key?(:job_complete)
@job_reference = args[:job_reference] if args.key?(:job_reference)
@kind = args[:kind] if args.key?(:kind)
@page_token = args[:page_token] if args.key?(:page_token)
@rows = args[:rows] if args.key?(:rows)
@schema = args[:schema] if args.key?(:schema)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@total_rows = args[:total_rows] if args.key?(:total_rows)
end
end
@ -1875,9 +1875,9 @@ module Google
# Update properties of this object
def update!(**args)
@estimated_bytes = args[:estimated_bytes] unless args[:estimated_bytes].nil?
@estimated_rows = args[:estimated_rows] unless args[:estimated_rows].nil?
@oldest_entry_time = args[:oldest_entry_time] unless args[:oldest_entry_time].nil?
@estimated_bytes = args[:estimated_bytes] if args.key?(:estimated_bytes)
@estimated_rows = args[:estimated_rows] if args.key?(:estimated_rows)
@oldest_entry_time = args[:oldest_entry_time] if args.key?(:oldest_entry_time)
end
end
@ -1995,24 +1995,24 @@ module Google
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@description = args[:description] unless args[:description].nil?
@etag = args[:etag] unless args[:etag].nil?
@expiration_time = args[:expiration_time] unless args[:expiration_time].nil?
@external_data_configuration = args[:external_data_configuration] unless args[:external_data_configuration].nil?
@friendly_name = args[:friendly_name] unless args[:friendly_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil?
@location = args[:location] unless args[:location].nil?
@num_bytes = args[:num_bytes] unless args[:num_bytes].nil?
@num_rows = args[:num_rows] unless args[:num_rows].nil?
@schema = args[:schema] unless args[:schema].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@streaming_buffer = args[:streaming_buffer] unless args[:streaming_buffer].nil?
@table_reference = args[:table_reference] unless args[:table_reference].nil?
@type = args[:type] unless args[:type].nil?
@view = args[:view] unless args[:view].nil?
@creation_time = args[:creation_time] if args.key?(:creation_time)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
@external_data_configuration = args[:external_data_configuration] if args.key?(:external_data_configuration)
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
@location = args[:location] if args.key?(:location)
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
@num_rows = args[:num_rows] if args.key?(:num_rows)
@schema = args[:schema] if args.key?(:schema)
@self_link = args[:self_link] if args.key?(:self_link)
@streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer)
@table_reference = args[:table_reference] if args.key?(:table_reference)
@type = args[:type] if args.key?(:type)
@view = args[:view] if args.key?(:view)
end
end
@ -2031,7 +2031,7 @@ module Google
# Update properties of this object
def update!(**args)
@v = args[:v] unless args[:v].nil?
@v = args[:v] if args.key?(:v)
end
end
@ -2080,11 +2080,11 @@ module Google
# Update properties of this object
def update!(**args)
@ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
@skip_invalid_rows = args[:skip_invalid_rows] unless args[:skip_invalid_rows].nil?
@template_suffix = args[:template_suffix] unless args[:template_suffix].nil?
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@kind = args[:kind] if args.key?(:kind)
@rows = args[:rows] if args.key?(:rows)
@skip_invalid_rows = args[:skip_invalid_rows] if args.key?(:skip_invalid_rows)
@template_suffix = args[:template_suffix] if args.key?(:template_suffix)
end
#
@ -2108,8 +2108,8 @@ module Google
# Update properties of this object
def update!(**args)
@insert_id = args[:insert_id] unless args[:insert_id].nil?
@json = args[:json] unless args[:json].nil?
@insert_id = args[:insert_id] if args.key?(:insert_id)
@json = args[:json] if args.key?(:json)
end
end
end
@ -2134,8 +2134,8 @@ module Google
# Update properties of this object
def update!(**args)
@insert_errors = args[:insert_errors] unless args[:insert_errors].nil?
@kind = args[:kind] unless args[:kind].nil?
@insert_errors = args[:insert_errors] if args.key?(:insert_errors)
@kind = args[:kind] if args.key?(:kind)
end
#
@ -2158,8 +2158,8 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@index = args[:index] unless args[:index].nil?
@errors = args[:errors] if args.key?(:errors)
@index = args[:index] if args.key?(:index)
end
end
end
@ -2201,11 +2201,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@rows = args[:rows] unless args[:rows].nil?
@total_rows = args[:total_rows] unless args[:total_rows].nil?
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@page_token = args[:page_token] if args.key?(:page_token)
@rows = args[:rows] if args.key?(:rows)
@total_rows = args[:total_rows] if args.key?(:total_rows)
end
end
@ -2250,11 +2250,11 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@fields = args[:fields] unless args[:fields].nil?
@mode = args[:mode] unless args[:mode].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@description = args[:description] if args.key?(:description)
@fields = args[:fields] if args.key?(:fields)
@mode = args[:mode] if args.key?(:mode)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
@ -2293,11 +2293,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@tables = args[:tables] unless args[:tables].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@tables = args[:tables] if args.key?(:tables)
@total_items = args[:total_items] if args.key?(:total_items)
end
#
@ -2335,11 +2335,11 @@ module Google
# Update properties of this object
def update!(**args)
@friendly_name = args[:friendly_name] unless args[:friendly_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@table_reference = args[:table_reference] unless args[:table_reference].nil?
@type = args[:type] unless args[:type].nil?
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@table_reference = args[:table_reference] if args.key?(:table_reference)
@type = args[:type] if args.key?(:type)
end
end
end
@ -2370,9 +2370,9 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@project_id = args[:project_id] if args.key?(:project_id)
@table_id = args[:table_id] if args.key?(:table_id)
end
end
@ -2391,7 +2391,7 @@ module Google
# Update properties of this object
def update!(**args)
@f = args[:f] unless args[:f].nil?
@f = args[:f] if args.key?(:f)
end
end
@ -2410,7 +2410,7 @@ module Google
# Update properties of this object
def update!(**args)
@fields = args[:fields] unless args[:fields].nil?
@fields = args[:fields] if args.key?(:fields)
end
end
@ -2437,8 +2437,8 @@ module Google
# Update properties of this object
def update!(**args)
@inline_code = args[:inline_code] unless args[:inline_code].nil?
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
@inline_code = args[:inline_code] if args.key?(:inline_code)
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
end
end
@ -2462,8 +2462,8 @@ module Google
# Update properties of this object
def update!(**args)
@query = args[:query] unless args[:query].nil?
@user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
@query = args[:query] if args.key?(:query)
@user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
end
end
end

View File

@ -97,19 +97,19 @@ module Google
# Update properties of this object
def update!(**args)
@custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil?
@description = args[:description] unless args[:description].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@locale = args[:locale] unless args[:locale].nil?
@name = args[:name] unless args[:name].nil?
@pages = args[:pages] unless args[:pages].nil?
@posts = args[:posts] unless args[:posts].nil?
@published = args[:published] unless args[:published].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@updated = args[:updated] unless args[:updated].nil?
@url = args[:url] unless args[:url].nil?
@custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@locale = args[:locale] if args.key?(:locale)
@name = args[:name] if args.key?(:name)
@pages = args[:pages] if args.key?(:pages)
@posts = args[:posts] if args.key?(:posts)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
end
# The locale this Blog is set to.
@ -137,9 +137,9 @@ module Google
# Update properties of this object
def update!(**args)
@country = args[:country] unless args[:country].nil?
@language = args[:language] unless args[:language].nil?
@variant = args[:variant] unless args[:variant].nil?
@country = args[:country] if args.key?(:country)
@language = args[:language] if args.key?(:language)
@variant = args[:variant] if args.key?(:variant)
end
end
@ -163,8 +163,8 @@ module Google
# Update properties of this object
def update!(**args)
@self_link = args[:self_link] unless args[:self_link].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@self_link = args[:self_link] if args.key?(:self_link)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
@ -193,9 +193,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@self_link = args[:self_link] if args.key?(:self_link)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
end
@ -225,9 +225,9 @@ module Google
# Update properties of this object
def update!(**args)
@blog_user_infos = args[:blog_user_infos] unless args[:blog_user_infos].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@blog_user_infos = args[:blog_user_infos] if args.key?(:blog_user_infos)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -272,12 +272,12 @@ module Google
# Update properties of this object
def update!(**args)
@blog_id = args[:blog_id] unless args[:blog_id].nil?
@has_admin_access = args[:has_admin_access] unless args[:has_admin_access].nil?
@kind = args[:kind] unless args[:kind].nil?
@photos_album_key = args[:photos_album_key] unless args[:photos_album_key].nil?
@role = args[:role] unless args[:role].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@blog_id = args[:blog_id] if args.key?(:blog_id)
@has_admin_access = args[:has_admin_access] if args.key?(:has_admin_access)
@kind = args[:kind] if args.key?(:kind)
@photos_album_key = args[:photos_album_key] if args.key?(:photos_album_key)
@role = args[:role] if args.key?(:role)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
@ -306,9 +306,9 @@ module Google
# Update properties of this object
def update!(**args)
@blog = args[:blog] unless args[:blog].nil?
@blog_user_info = args[:blog_user_info] unless args[:blog_user_info].nil?
@kind = args[:kind] unless args[:kind].nil?
@blog = args[:blog] if args.key?(:blog)
@blog_user_info = args[:blog_user_info] if args.key?(:blog_user_info)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -377,17 +377,17 @@ module Google
# Update properties of this object
def update!(**args)
@author = args[:author] unless args[:author].nil?
@blog = args[:blog] unless args[:blog].nil?
@content = args[:content] unless args[:content].nil?
@id = args[:id] unless args[:id].nil?
@in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil?
@kind = args[:kind] unless args[:kind].nil?
@post = args[:post] unless args[:post].nil?
@published = args[:published] unless args[:published].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@updated = args[:updated] unless args[:updated].nil?
@author = args[:author] if args.key?(:author)
@blog = args[:blog] if args.key?(:blog)
@content = args[:content] if args.key?(:content)
@id = args[:id] if args.key?(:id)
@in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to)
@kind = args[:kind] if args.key?(:kind)
@post = args[:post] if args.key?(:post)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@updated = args[:updated] if args.key?(:updated)
end
# The author of this Comment.
@ -420,10 +420,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@id = args[:id] unless args[:id].nil?
@image = args[:image] unless args[:image].nil?
@url = args[:url] unless args[:url].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id)
@image = args[:image] if args.key?(:image)
@url = args[:url] if args.key?(:url)
end
# The comment creator's avatar.
@ -441,7 +441,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
end
@ -461,7 +461,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
@ -480,7 +480,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
@ -499,7 +499,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
end
@ -539,11 +539,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
end
end
@ -618,18 +618,18 @@ module Google
# Update properties of this object
def update!(**args)
@author = args[:author] unless args[:author].nil?
@blog = args[:blog] unless args[:blog].nil?
@content = args[:content] unless args[:content].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@published = args[:published] unless args[:published].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@title = args[:title] unless args[:title].nil?
@updated = args[:updated] unless args[:updated].nil?
@url = args[:url] unless args[:url].nil?
@author = args[:author] if args.key?(:author)
@blog = args[:blog] if args.key?(:blog)
@content = args[:content] if args.key?(:content)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
end
# The author of this Page.
@ -662,10 +662,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@id = args[:id] unless args[:id].nil?
@image = args[:image] unless args[:image].nil?
@url = args[:url] unless args[:url].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id)
@image = args[:image] if args.key?(:image)
@url = args[:url] if args.key?(:url)
end
# The page author's avatar.
@ -683,7 +683,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
end
@ -703,7 +703,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
end
@ -738,10 +738,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -770,9 +770,9 @@ module Google
# Update properties of this object
def update!(**args)
@blog_id = args[:blog_id] unless args[:blog_id].nil?
@counts = args[:counts] unless args[:counts].nil?
@kind = args[:kind] unless args[:kind].nil?
@blog_id = args[:blog_id] if args.key?(:blog_id)
@counts = args[:counts] if args.key?(:counts)
@kind = args[:kind] if args.key?(:kind)
end
#
@ -795,8 +795,8 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] unless args[:count].nil?
@time_range = args[:time_range] unless args[:time_range].nil?
@count = args[:count] if args.key?(:count)
@time_range = args[:time_range] if args.key?(:time_range)
end
end
end
@ -906,25 +906,25 @@ module Google
# Update properties of this object
def update!(**args)
@author = args[:author] unless args[:author].nil?
@blog = args[:blog] unless args[:blog].nil?
@content = args[:content] unless args[:content].nil?
@custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@images = args[:images] unless args[:images].nil?
@kind = args[:kind] unless args[:kind].nil?
@labels = args[:labels] unless args[:labels].nil?
@location = args[:location] unless args[:location].nil?
@published = args[:published] unless args[:published].nil?
@reader_comments = args[:reader_comments] unless args[:reader_comments].nil?
@replies = args[:replies] unless args[:replies].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@title = args[:title] unless args[:title].nil?
@title_link = args[:title_link] unless args[:title_link].nil?
@updated = args[:updated] unless args[:updated].nil?
@url = args[:url] unless args[:url].nil?
@author = args[:author] if args.key?(:author)
@blog = args[:blog] if args.key?(:blog)
@content = args[:content] if args.key?(:content)
@custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@images = args[:images] if args.key?(:images)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location)
@published = args[:published] if args.key?(:published)
@reader_comments = args[:reader_comments] if args.key?(:reader_comments)
@replies = args[:replies] if args.key?(:replies)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@title_link = args[:title_link] if args.key?(:title_link)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
end
# The author of this Post.
@ -957,10 +957,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@id = args[:id] unless args[:id].nil?
@image = args[:image] unless args[:image].nil?
@url = args[:url] unless args[:url].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id)
@image = args[:image] if args.key?(:image)
@url = args[:url] if args.key?(:url)
end
# The Post author's avatar.
@ -978,7 +978,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
end
@ -998,7 +998,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
@ -1017,7 +1017,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
@ -1051,10 +1051,10 @@ module Google
# Update properties of this object
def update!(**args)
@lat = args[:lat] unless args[:lat].nil?
@lng = args[:lng] unless args[:lng].nil?
@name = args[:name] unless args[:name].nil?
@span = args[:span] unless args[:span].nil?
@lat = args[:lat] if args.key?(:lat)
@lng = args[:lng] if args.key?(:lng)
@name = args[:name] if args.key?(:name)
@span = args[:span] if args.key?(:span)
end
end
@ -1083,9 +1083,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@self_link = args[:self_link] if args.key?(:self_link)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
end
@ -1120,10 +1120,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1163,11 +1163,11 @@ module Google
# Update properties of this object
def update!(**args)
@blog_id = args[:blog_id] unless args[:blog_id].nil?
@has_edit_access = args[:has_edit_access] unless args[:has_edit_access].nil?
@kind = args[:kind] unless args[:kind].nil?
@post_id = args[:post_id] unless args[:post_id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@blog_id = args[:blog_id] if args.key?(:blog_id)
@has_edit_access = args[:has_edit_access] if args.key?(:has_edit_access)
@kind = args[:kind] if args.key?(:kind)
@post_id = args[:post_id] if args.key?(:post_id)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
@ -1196,9 +1196,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@post = args[:post] unless args[:post].nil?
@post_user_info = args[:post_user_info] unless args[:post_user_info].nil?
@kind = args[:kind] if args.key?(:kind)
@post = args[:post] if args.key?(:post)
@post_user_info = args[:post_user_info] if args.key?(:post_user_info)
end
end
@ -1227,9 +1227,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1288,15 +1288,15 @@ module Google
# Update properties of this object
def update!(**args)
@about = args[:about] unless args[:about].nil?
@blogs = args[:blogs] unless args[:blogs].nil?
@created = args[:created] unless args[:created].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@locale = args[:locale] unless args[:locale].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@url = args[:url] unless args[:url].nil?
@about = args[:about] if args.key?(:about)
@blogs = args[:blogs] if args.key?(:blogs)
@created = args[:created] if args.key?(:created)
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@locale = args[:locale] if args.key?(:locale)
@self_link = args[:self_link] if args.key?(:self_link)
@url = args[:url] if args.key?(:url)
end
# The container of blogs for this user.
@ -1314,7 +1314,7 @@ module Google
# Update properties of this object
def update!(**args)
@self_link = args[:self_link] unless args[:self_link].nil?
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -1343,9 +1343,9 @@ module Google
# Update properties of this object
def update!(**args)
@country = args[:country] unless args[:country].nil?
@language = args[:language] unless args[:language].nil?
@variant = args[:variant] unless args[:variant].nil?
@country = args[:country] if args.key?(:country)
@language = args[:language] if args.key?(:language)
@variant = args[:variant] if args.key?(:variant)
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20160104'
REVISION = '20160110'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -60,11 +60,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
end
end
@ -112,11 +112,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@role = args[:role] unless args[:role].nil?
@scope = args[:scope] unless args[:scope].nil?
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@role = args[:role] if args.key?(:role)
@scope = args[:scope] if args.key?(:scope)
end
# The scope of the rule.
@ -145,8 +145,8 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] unless args[:type].nil?
@value = args[:value] unless args[:value].nil?
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
end
end
end
@ -198,13 +198,13 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@location = args[:location] unless args[:location].nil?
@summary = args[:summary] unless args[:summary].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@location = args[:location] if args.key?(:location)
@summary = args[:summary] if args.key?(:summary)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
@ -246,11 +246,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
end
end
@ -380,24 +380,24 @@ module Google
# Update properties of this object
def update!(**args)
@access_role = args[:access_role] unless args[:access_role].nil?
@background_color = args[:background_color] unless args[:background_color].nil?
@color_id = args[:color_id] unless args[:color_id].nil?
@default_reminders = args[:default_reminders] unless args[:default_reminders].nil?
@deleted = args[:deleted] unless args[:deleted].nil?
@description = args[:description] unless args[:description].nil?
@etag = args[:etag] unless args[:etag].nil?
@foreground_color = args[:foreground_color] unless args[:foreground_color].nil?
@hidden = args[:hidden] unless args[:hidden].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@location = args[:location] unless args[:location].nil?
@notification_settings = args[:notification_settings] unless args[:notification_settings].nil?
@primary = args[:primary] unless args[:primary].nil?
@selected = args[:selected] unless args[:selected].nil?
@summary = args[:summary] unless args[:summary].nil?
@summary_override = args[:summary_override] unless args[:summary_override].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@access_role = args[:access_role] if args.key?(:access_role)
@background_color = args[:background_color] if args.key?(:background_color)
@color_id = args[:color_id] if args.key?(:color_id)
@default_reminders = args[:default_reminders] if args.key?(:default_reminders)
@deleted = args[:deleted] if args.key?(:deleted)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@foreground_color = args[:foreground_color] if args.key?(:foreground_color)
@hidden = args[:hidden] if args.key?(:hidden)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@location = args[:location] if args.key?(:location)
@notification_settings = args[:notification_settings] if args.key?(:notification_settings)
@primary = args[:primary] if args.key?(:primary)
@selected = args[:selected] if args.key?(:selected)
@summary = args[:summary] if args.key?(:summary)
@summary_override = args[:summary_override] if args.key?(:summary_override)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
# The notifications that the authenticated user is receiving for this calendar.
@ -415,7 +415,7 @@ module Google
# Update properties of this object
def update!(**args)
@notifications = args[:notifications] unless args[:notifications].nil?
@notifications = args[:notifications] if args.key?(:notifications)
end
end
end
@ -449,8 +449,8 @@ module Google
# Update properties of this object
def update!(**args)
@delivery_method = args[:delivery_method] unless args[:delivery_method].nil?
@type = args[:type] unless args[:type].nil?
@delivery_method = args[:delivery_method] if args.key?(:delivery_method)
@type = args[:type] if args.key?(:type)
end
end
@ -519,16 +519,16 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@params = args[:params] unless args[:params].nil?
@payload = args[:payload] unless args[:payload].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@address = args[:address] if args.key?(:address)
@expiration = args[:expiration] if args.key?(:expiration)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@params = args[:params] if args.key?(:params)
@payload = args[:payload] if args.key?(:payload)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
@ -553,8 +553,8 @@ module Google
# Update properties of this object
def update!(**args)
@background = args[:background] unless args[:background].nil?
@foreground = args[:foreground] unless args[:foreground].nil?
@background = args[:background] if args.key?(:background)
@foreground = args[:foreground] if args.key?(:foreground)
end
end
@ -593,10 +593,10 @@ module Google
# Update properties of this object
def update!(**args)
@calendar = args[:calendar] unless args[:calendar].nil?
@event = args[:event] unless args[:event].nil?
@kind = args[:kind] unless args[:kind].nil?
@updated = args[:updated] unless args[:updated].nil?
@calendar = args[:calendar] if args.key?(:calendar)
@event = args[:event] if args.key?(:event)
@kind = args[:kind] if args.key?(:kind)
@updated = args[:updated] if args.key?(:updated)
end
end
@ -628,8 +628,8 @@ module Google
# Update properties of this object
def update!(**args)
@domain = args[:domain] unless args[:domain].nil?
@reason = args[:reason] unless args[:reason].nil?
@domain = args[:domain] if args.key?(:domain)
@reason = args[:reason] if args.key?(:reason)
end
end
@ -900,43 +900,43 @@ module Google
# Update properties of this object
def update!(**args)
@anyone_can_add_self = args[:anyone_can_add_self] unless args[:anyone_can_add_self].nil?
@attachments = args[:attachments] unless args[:attachments].nil?
@attendees = args[:attendees] unless args[:attendees].nil?
@attendees_omitted = args[:attendees_omitted] unless args[:attendees_omitted].nil?
@color_id = args[:color_id] unless args[:color_id].nil?
@created = args[:created] unless args[:created].nil?
@creator = args[:creator] unless args[:creator].nil?
@description = args[:description] unless args[:description].nil?
@end = args[:end] unless args[:end].nil?
@end_time_unspecified = args[:end_time_unspecified] unless args[:end_time_unspecified].nil?
@etag = args[:etag] unless args[:etag].nil?
@extended_properties = args[:extended_properties] unless args[:extended_properties].nil?
@gadget = args[:gadget] unless args[:gadget].nil?
@guests_can_invite_others = args[:guests_can_invite_others] unless args[:guests_can_invite_others].nil?
@guests_can_modify = args[:guests_can_modify] unless args[:guests_can_modify].nil?
@guests_can_see_other_guests = args[:guests_can_see_other_guests] unless args[:guests_can_see_other_guests].nil?
@hangout_link = args[:hangout_link] unless args[:hangout_link].nil?
@html_link = args[:html_link] unless args[:html_link].nil?
@i_cal_uid = args[:i_cal_uid] unless args[:i_cal_uid].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@location = args[:location] unless args[:location].nil?
@locked = args[:locked] unless args[:locked].nil?
@organizer = args[:organizer] unless args[:organizer].nil?
@original_start_time = args[:original_start_time] unless args[:original_start_time].nil?
@private_copy = args[:private_copy] unless args[:private_copy].nil?
@recurrence = args[:recurrence] unless args[:recurrence].nil?
@recurring_event_id = args[:recurring_event_id] unless args[:recurring_event_id].nil?
@reminders = args[:reminders] unless args[:reminders].nil?
@sequence = args[:sequence] unless args[:sequence].nil?
@source = args[:source] unless args[:source].nil?
@start = args[:start] unless args[:start].nil?
@status = args[:status] unless args[:status].nil?
@summary = args[:summary] unless args[:summary].nil?
@transparency = args[:transparency] unless args[:transparency].nil?
@updated = args[:updated] unless args[:updated].nil?
@visibility = args[:visibility] unless args[:visibility].nil?
@anyone_can_add_self = args[:anyone_can_add_self] if args.key?(:anyone_can_add_self)
@attachments = args[:attachments] if args.key?(:attachments)
@attendees = args[:attendees] if args.key?(:attendees)
@attendees_omitted = args[:attendees_omitted] if args.key?(:attendees_omitted)
@color_id = args[:color_id] if args.key?(:color_id)
@created = args[:created] if args.key?(:created)
@creator = args[:creator] if args.key?(:creator)
@description = args[:description] if args.key?(:description)
@end = args[:end] if args.key?(:end)
@end_time_unspecified = args[:end_time_unspecified] if args.key?(:end_time_unspecified)
@etag = args[:etag] if args.key?(:etag)
@extended_properties = args[:extended_properties] if args.key?(:extended_properties)
@gadget = args[:gadget] if args.key?(:gadget)
@guests_can_invite_others = args[:guests_can_invite_others] if args.key?(:guests_can_invite_others)
@guests_can_modify = args[:guests_can_modify] if args.key?(:guests_can_modify)
@guests_can_see_other_guests = args[:guests_can_see_other_guests] if args.key?(:guests_can_see_other_guests)
@hangout_link = args[:hangout_link] if args.key?(:hangout_link)
@html_link = args[:html_link] if args.key?(:html_link)
@i_cal_uid = args[:i_cal_uid] if args.key?(:i_cal_uid)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@location = args[:location] if args.key?(:location)
@locked = args[:locked] if args.key?(:locked)
@organizer = args[:organizer] if args.key?(:organizer)
@original_start_time = args[:original_start_time] if args.key?(:original_start_time)
@private_copy = args[:private_copy] if args.key?(:private_copy)
@recurrence = args[:recurrence] if args.key?(:recurrence)
@recurring_event_id = args[:recurring_event_id] if args.key?(:recurring_event_id)
@reminders = args[:reminders] if args.key?(:reminders)
@sequence = args[:sequence] if args.key?(:sequence)
@source = args[:source] if args.key?(:source)
@start = args[:start] if args.key?(:start)
@status = args[:status] if args.key?(:status)
@summary = args[:summary] if args.key?(:summary)
@transparency = args[:transparency] if args.key?(:transparency)
@updated = args[:updated] if args.key?(:updated)
@visibility = args[:visibility] if args.key?(:visibility)
end
# The creator of the event. Read-only.
@ -972,10 +972,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@id = args[:id] unless args[:id].nil?
@self = args[:self] unless args[:self].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@id = args[:id] if args.key?(:id)
@self = args[:self] if args.key?(:self)
end
end
@ -1001,8 +1001,8 @@ module Google
# Update properties of this object
def update!(**args)
@private = args[:private] unless args[:private].nil?
@shared = args[:shared] unless args[:shared].nil?
@private = args[:private] if args.key?(:private)
@shared = args[:shared] if args.key?(:shared)
end
end
@ -1060,14 +1060,14 @@ module Google
# Update properties of this object
def update!(**args)
@display_mode = args[:display_mode] unless args[:display_mode].nil?
@height = args[:height] unless args[:height].nil?
@icon_link = args[:icon_link] unless args[:icon_link].nil?
@link = args[:link] unless args[:link].nil?
@preferences = args[:preferences] unless args[:preferences].nil?
@title = args[:title] unless args[:title].nil?
@type = args[:type] unless args[:type].nil?
@width = args[:width] unless args[:width].nil?
@display_mode = args[:display_mode] if args.key?(:display_mode)
@height = args[:height] if args.key?(:height)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@link = args[:link] if args.key?(:link)
@preferences = args[:preferences] if args.key?(:preferences)
@title = args[:title] if args.key?(:title)
@type = args[:type] if args.key?(:type)
@width = args[:width] if args.key?(:width)
end
end
@ -1108,10 +1108,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@id = args[:id] unless args[:id].nil?
@self = args[:self] unless args[:self].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@id = args[:id] if args.key?(:id)
@self = args[:self] if args.key?(:self)
end
end
@ -1138,8 +1138,8 @@ module Google
# Update properties of this object
def update!(**args)
@overrides = args[:overrides] unless args[:overrides].nil?
@use_default = args[:use_default] unless args[:use_default].nil?
@overrides = args[:overrides] if args.key?(:overrides)
@use_default = args[:use_default] if args.key?(:use_default)
end
end
@ -1165,8 +1165,8 @@ module Google
# Update properties of this object
def update!(**args)
@title = args[:title] unless args[:title].nil?
@url = args[:url] unless args[:url].nil?
@title = args[:title] if args.key?(:title)
@url = args[:url] if args.key?(:url)
end
end
end
@ -1210,11 +1210,11 @@ module Google
# Update properties of this object
def update!(**args)
@file_id = args[:file_id] unless args[:file_id].nil?
@file_url = args[:file_url] unless args[:file_url].nil?
@icon_link = args[:icon_link] unless args[:icon_link].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@title = args[:title] unless args[:title].nil?
@file_id = args[:file_id] if args.key?(:file_id)
@file_url = args[:file_url] if args.key?(:file_url)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@title = args[:title] if args.key?(:title)
end
end
@ -1290,16 +1290,16 @@ module Google
# Update properties of this object
def update!(**args)
@additional_guests = args[:additional_guests] unless args[:additional_guests].nil?
@comment = args[:comment] unless args[:comment].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@id = args[:id] unless args[:id].nil?
@optional = args[:optional] unless args[:optional].nil?
@organizer = args[:organizer] unless args[:organizer].nil?
@resource = args[:resource] unless args[:resource].nil?
@response_status = args[:response_status] unless args[:response_status].nil?
@self = args[:self] unless args[:self].nil?
@additional_guests = args[:additional_guests] if args.key?(:additional_guests)
@comment = args[:comment] if args.key?(:comment)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@id = args[:id] if args.key?(:id)
@optional = args[:optional] if args.key?(:optional)
@organizer = args[:organizer] if args.key?(:organizer)
@resource = args[:resource] if args.key?(:resource)
@response_status = args[:response_status] if args.key?(:response_status)
@self = args[:self] if args.key?(:self)
end
end
@ -1334,9 +1334,9 @@ module Google
# Update properties of this object
def update!(**args)
@date = args[:date] unless args[:date].nil?
@date_time = args[:date_time] unless args[:date_time].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@date = args[:date] if args.key?(:date)
@date_time = args[:date_time] if args.key?(:date_time)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
@ -1366,8 +1366,8 @@ module Google
# Update properties of this object
def update!(**args)
@reminder_method = args[:reminder_method] unless args[:reminder_method].nil?
@minutes = args[:minutes] unless args[:minutes].nil?
@reminder_method = args[:reminder_method] if args.key?(:reminder_method)
@minutes = args[:minutes] if args.key?(:minutes)
end
end
@ -1451,17 +1451,17 @@ module Google
# Update properties of this object
def update!(**args)
@access_role = args[:access_role] unless args[:access_role].nil?
@default_reminders = args[:default_reminders] unless args[:default_reminders].nil?
@description = args[:description] unless args[:description].nil?
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil?
@summary = args[:summary] unless args[:summary].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@updated = args[:updated] unless args[:updated].nil?
@access_role = args[:access_role] if args.key?(:access_role)
@default_reminders = args[:default_reminders] if args.key?(:default_reminders)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
@summary = args[:summary] if args.key?(:summary)
@time_zone = args[:time_zone] if args.key?(:time_zone)
@updated = args[:updated] if args.key?(:updated)
end
end
@ -1485,8 +1485,8 @@ module Google
# Update properties of this object
def update!(**args)
@busy = args[:busy] unless args[:busy].nil?
@errors = args[:errors] unless args[:errors].nil?
@busy = args[:busy] if args.key?(:busy)
@errors = args[:errors] if args.key?(:errors)
end
end
@ -1510,8 +1510,8 @@ module Google
# Update properties of this object
def update!(**args)
@calendars = args[:calendars] unless args[:calendars].nil?
@errors = args[:errors] unless args[:errors].nil?
@calendars = args[:calendars] if args.key?(:calendars)
@errors = args[:errors] if args.key?(:errors)
end
end
@ -1558,12 +1558,12 @@ module Google
# Update properties of this object
def update!(**args)
@calendar_expansion_max = args[:calendar_expansion_max] unless args[:calendar_expansion_max].nil?
@group_expansion_max = args[:group_expansion_max] unless args[:group_expansion_max].nil?
@items = args[:items] unless args[:items].nil?
@time_max = args[:time_max] unless args[:time_max].nil?
@time_min = args[:time_min] unless args[:time_min].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@calendar_expansion_max = args[:calendar_expansion_max] if args.key?(:calendar_expansion_max)
@group_expansion_max = args[:group_expansion_max] if args.key?(:group_expansion_max)
@items = args[:items] if args.key?(:items)
@time_max = args[:time_max] if args.key?(:time_max)
@time_min = args[:time_min] if args.key?(:time_min)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
@ -1582,7 +1582,7 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@id = args[:id] if args.key?(:id)
end
end
@ -1621,11 +1621,11 @@ module Google
# Update properties of this object
def update!(**args)
@calendars = args[:calendars] unless args[:calendars].nil?
@groups = args[:groups] unless args[:groups].nil?
@kind = args[:kind] unless args[:kind].nil?
@time_max = args[:time_max] unless args[:time_max].nil?
@time_min = args[:time_min] unless args[:time_min].nil?
@calendars = args[:calendars] if args.key?(:calendars)
@groups = args[:groups] if args.key?(:groups)
@kind = args[:kind] if args.key?(:kind)
@time_max = args[:time_max] if args.key?(:time_max)
@time_min = args[:time_min] if args.key?(:time_min)
end
end
@ -1660,10 +1660,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@value = args[:value] unless args[:value].nil?
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@value = args[:value] if args.key?(:value)
end
end
@ -1705,11 +1705,11 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
end
end
@ -1733,8 +1733,8 @@ module Google
# Update properties of this object
def update!(**args)
@end = args[:end] unless args[:end].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] if args.key?(:end)
@start = args[:start] if args.key?(:start)
end
end
end

View File

@ -61,11 +61,11 @@ module Google
# Update properties of this object
def update!(**args)
@election_administration_body = args[:election_administration_body] unless args[:election_administration_body].nil?
@id = args[:id] unless args[:id].nil?
@local_jurisdiction = args[:local_jurisdiction] unless args[:local_jurisdiction].nil?
@name = args[:name] unless args[:name].nil?
@sources = args[:sources] unless args[:sources].nil?
@election_administration_body = args[:election_administration_body] if args.key?(:election_administration_body)
@id = args[:id] if args.key?(:id)
@local_jurisdiction = args[:local_jurisdiction] if args.key?(:local_jurisdiction)
@name = args[:name] if args.key?(:name)
@sources = args[:sources] if args.key?(:sources)
end
end
@ -150,19 +150,19 @@ module Google
# Update properties of this object
def update!(**args)
@absentee_voting_info_url = args[:absentee_voting_info_url] unless args[:absentee_voting_info_url].nil?
@ballot_info_url = args[:ballot_info_url] unless args[:ballot_info_url].nil?
@correspondence_address = args[:correspondence_address] unless args[:correspondence_address].nil?
@election_info_url = args[:election_info_url] unless args[:election_info_url].nil?
@election_officials = args[:election_officials] unless args[:election_officials].nil?
@election_registration_confirmation_url = args[:election_registration_confirmation_url] unless args[:election_registration_confirmation_url].nil?
@election_registration_url = args[:election_registration_url] unless args[:election_registration_url].nil?
@election_rules_url = args[:election_rules_url] unless args[:election_rules_url].nil?
@hours_of_operation = args[:hours_of_operation] unless args[:hours_of_operation].nil?
@name = args[:name] unless args[:name].nil?
@physical_address = args[:physical_address] unless args[:physical_address].nil?
@voter_services = args[:voter_services] unless args[:voter_services].nil?
@voting_location_finder_url = args[:voting_location_finder_url] unless args[:voting_location_finder_url].nil?
@absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
@election_officials = args[:election_officials] if args.key?(:election_officials)
@election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url)
@election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url)
@election_rules_url = args[:election_rules_url] if args.key?(:election_rules_url)
@hours_of_operation = args[:hours_of_operation] if args.key?(:hours_of_operation)
@name = args[:name] if args.key?(:name)
@physical_address = args[:physical_address] if args.key?(:physical_address)
@voter_services = args[:voter_services] if args.key?(:voter_services)
@voting_location_finder_url = args[:voting_location_finder_url] if args.key?(:voting_location_finder_url)
end
end
@ -216,14 +216,14 @@ module Google
# Update properties of this object
def update!(**args)
@candidate_url = args[:candidate_url] unless args[:candidate_url].nil?
@channels = args[:channels] unless args[:channels].nil?
@email = args[:email] unless args[:email].nil?
@name = args[:name] unless args[:name].nil?
@order_on_ballot = args[:order_on_ballot] unless args[:order_on_ballot].nil?
@party = args[:party] unless args[:party].nil?
@phone = args[:phone] unless args[:phone].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@candidate_url = args[:candidate_url] if args.key?(:candidate_url)
@channels = args[:channels] if args.key?(:channels)
@email = args[:email] if args.key?(:email)
@name = args[:name] if args.key?(:name)
@order_on_ballot = args[:order_on_ballot] if args.key?(:order_on_ballot)
@party = args[:party] if args.key?(:party)
@phone = args[:phone] if args.key?(:phone)
@photo_url = args[:photo_url] if args.key?(:photo_url)
end
end
@ -249,8 +249,8 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@type = args[:type] unless args[:type].nil?
@id = args[:id] if args.key?(:id)
@type = args[:type] if args.key?(:type)
end
end
@ -408,30 +408,30 @@ module Google
# Update properties of this object
def update!(**args)
@ballot_placement = args[:ballot_placement] unless args[:ballot_placement].nil?
@candidates = args[:candidates] unless args[:candidates].nil?
@district = args[:district] unless args[:district].nil?
@electorate_specifications = args[:electorate_specifications] unless args[:electorate_specifications].nil?
@id = args[:id] unless args[:id].nil?
@level = args[:level] unless args[:level].nil?
@number_elected = args[:number_elected] unless args[:number_elected].nil?
@number_voting_for = args[:number_voting_for] unless args[:number_voting_for].nil?
@office = args[:office] unless args[:office].nil?
@primary_party = args[:primary_party] unless args[:primary_party].nil?
@referendum_ballot_responses = args[:referendum_ballot_responses] unless args[:referendum_ballot_responses].nil?
@referendum_brief = args[:referendum_brief] unless args[:referendum_brief].nil?
@referendum_con_statement = args[:referendum_con_statement] unless args[:referendum_con_statement].nil?
@referendum_effect_of_abstain = args[:referendum_effect_of_abstain] unless args[:referendum_effect_of_abstain].nil?
@referendum_passage_threshold = args[:referendum_passage_threshold] unless args[:referendum_passage_threshold].nil?
@referendum_pro_statement = args[:referendum_pro_statement] unless args[:referendum_pro_statement].nil?
@referendum_subtitle = args[:referendum_subtitle] unless args[:referendum_subtitle].nil?
@referendum_text = args[:referendum_text] unless args[:referendum_text].nil?
@referendum_title = args[:referendum_title] unless args[:referendum_title].nil?
@referendum_url = args[:referendum_url] unless args[:referendum_url].nil?
@roles = args[:roles] unless args[:roles].nil?
@sources = args[:sources] unless args[:sources].nil?
@special = args[:special] unless args[:special].nil?
@type = args[:type] unless args[:type].nil?
@ballot_placement = args[:ballot_placement] if args.key?(:ballot_placement)
@candidates = args[:candidates] if args.key?(:candidates)
@district = args[:district] if args.key?(:district)
@electorate_specifications = args[:electorate_specifications] if args.key?(:electorate_specifications)
@id = args[:id] if args.key?(:id)
@level = args[:level] if args.key?(:level)
@number_elected = args[:number_elected] if args.key?(:number_elected)
@number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for)
@office = args[:office] if args.key?(:office)
@primary_party = args[:primary_party] if args.key?(:primary_party)
@referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses)
@referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief)
@referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement)
@referendum_effect_of_abstain = args[:referendum_effect_of_abstain] if args.key?(:referendum_effect_of_abstain)
@referendum_passage_threshold = args[:referendum_passage_threshold] if args.key?(:referendum_passage_threshold)
@referendum_pro_statement = args[:referendum_pro_statement] if args.key?(:referendum_pro_statement)
@referendum_subtitle = args[:referendum_subtitle] if args.key?(:referendum_subtitle)
@referendum_text = args[:referendum_text] if args.key?(:referendum_text)
@referendum_title = args[:referendum_title] if args.key?(:referendum_title)
@referendum_url = args[:referendum_url] if args.key?(:referendum_url)
@roles = args[:roles] if args.key?(:roles)
@sources = args[:sources] if args.key?(:sources)
@special = args[:special] if args.key?(:special)
@type = args[:type] if args.key?(:type)
end
end
@ -456,8 +456,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@results = args[:results] unless args[:results].nil?
@kind = args[:kind] if args.key?(:kind)
@results = args[:results] if args.key?(:results)
end
end
@ -490,9 +490,9 @@ module Google
# Update properties of this object
def update!(**args)
@aliases = args[:aliases] unless args[:aliases].nil?
@name = args[:name] unless args[:name].nil?
@ocd_id = args[:ocd_id] unless args[:ocd_id].nil?
@aliases = args[:aliases] if args.key?(:aliases)
@name = args[:name] if args.key?(:name)
@ocd_id = args[:ocd_id] if args.key?(:ocd_id)
end
end
@ -529,10 +529,10 @@ module Google
# Update properties of this object
def update!(**args)
@election_day = args[:election_day] unless args[:election_day].nil?
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@ocd_division_id = args[:ocd_division_id] unless args[:ocd_division_id].nil?
@election_day = args[:election_day] if args.key?(:election_day)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@ocd_division_id = args[:ocd_division_id] if args.key?(:ocd_division_id)
end
end
@ -571,11 +571,11 @@ module Google
# Update properties of this object
def update!(**args)
@email_address = args[:email_address] unless args[:email_address].nil?
@fax_number = args[:fax_number] unless args[:fax_number].nil?
@name = args[:name] unless args[:name].nil?
@office_phone_number = args[:office_phone_number] unless args[:office_phone_number].nil?
@title = args[:title] unless args[:title].nil?
@email_address = args[:email_address] if args.key?(:email_address)
@fax_number = args[:fax_number] if args.key?(:fax_number)
@name = args[:name] if args.key?(:name)
@office_phone_number = args[:office_phone_number] if args.key?(:office_phone_number)
@title = args[:title] if args.key?(:title)
end
end
@ -600,8 +600,8 @@ module Google
# Update properties of this object
def update!(**args)
@elections = args[:elections] unless args[:elections].nil?
@kind = args[:kind] unless args[:kind].nil?
@elections = args[:elections] if args.key?(:elections)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -634,9 +634,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@scope = args[:scope] unless args[:scope].nil?
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@scope = args[:scope] if args.key?(:scope)
end
end
@ -675,9 +675,9 @@ module Google
# Update properties of this object
def update!(**args)
@also_known_as = args[:also_known_as] unless args[:also_known_as].nil?
@name = args[:name] unless args[:name].nil?
@office_indices = args[:office_indices] unless args[:office_indices].nil?
@also_known_as = args[:also_known_as] if args.key?(:also_known_as)
@name = args[:name] if args.key?(:name)
@office_indices = args[:office_indices] if args.key?(:office_indices)
end
end
@ -730,12 +730,12 @@ module Google
# Update properties of this object
def update!(**args)
@division_id = args[:division_id] unless args[:division_id].nil?
@levels = args[:levels] unless args[:levels].nil?
@name = args[:name] unless args[:name].nil?
@official_indices = args[:official_indices] unless args[:official_indices].nil?
@roles = args[:roles] unless args[:roles].nil?
@sources = args[:sources] unless args[:sources].nil?
@division_id = args[:division_id] if args.key?(:division_id)
@levels = args[:levels] if args.key?(:levels)
@name = args[:name] if args.key?(:name)
@official_indices = args[:official_indices] if args.key?(:official_indices)
@roles = args[:roles] if args.key?(:roles)
@sources = args[:sources] if args.key?(:sources)
end
end
@ -789,14 +789,14 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@channels = args[:channels] unless args[:channels].nil?
@emails = args[:emails] unless args[:emails].nil?
@name = args[:name] unless args[:name].nil?
@party = args[:party] unless args[:party].nil?
@phones = args[:phones] unless args[:phones].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@urls = args[:urls] unless args[:urls].nil?
@address = args[:address] if args.key?(:address)
@channels = args[:channels] if args.key?(:channels)
@emails = args[:emails] if args.key?(:emails)
@name = args[:name] if args.key?(:name)
@party = args[:party] if args.key?(:party)
@phones = args[:phones] if args.key?(:phones)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@urls = args[:urls] if args.key?(:urls)
end
end
@ -863,15 +863,15 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@notes = args[:notes] unless args[:notes].nil?
@polling_hours = args[:polling_hours] unless args[:polling_hours].nil?
@sources = args[:sources] unless args[:sources].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@voter_services = args[:voter_services] unless args[:voter_services].nil?
@address = args[:address] if args.key?(:address)
@end_date = args[:end_date] if args.key?(:end_date)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@notes = args[:notes] if args.key?(:notes)
@polling_hours = args[:polling_hours] if args.key?(:polling_hours)
@sources = args[:sources] if args.key?(:sources)
@start_date = args[:start_date] if args.key?(:start_date)
@voter_services = args[:voter_services] if args.key?(:voter_services)
end
end
@ -902,9 +902,9 @@ module Google
# Update properties of this object
def update!(**args)
@divisions = args[:divisions] unless args[:divisions].nil?
@offices = args[:offices] unless args[:offices].nil?
@officials = args[:officials] unless args[:officials].nil?
@divisions = args[:divisions] if args.key?(:divisions)
@offices = args[:offices] if args.key?(:offices)
@officials = args[:officials] if args.key?(:officials)
end
end
@ -946,11 +946,11 @@ module Google
# Update properties of this object
def update!(**args)
@divisions = args[:divisions] unless args[:divisions].nil?
@kind = args[:kind] unless args[:kind].nil?
@normalized_input = args[:normalized_input] unless args[:normalized_input].nil?
@offices = args[:offices] unless args[:offices].nil?
@officials = args[:officials] unless args[:officials].nil?
@divisions = args[:divisions] if args.key?(:divisions)
@kind = args[:kind] if args.key?(:kind)
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
@offices = args[:offices] if args.key?(:offices)
@officials = args[:officials] if args.key?(:officials)
end
end
@ -999,13 +999,13 @@ module Google
# Update properties of this object
def update!(**args)
@city = args[:city] unless args[:city].nil?
@line1 = args[:line1] unless args[:line1].nil?
@line2 = args[:line2] unless args[:line2].nil?
@line3 = args[:line3] unless args[:line3].nil?
@location_name = args[:location_name] unless args[:location_name].nil?
@state = args[:state] unless args[:state].nil?
@zip = args[:zip] unless args[:zip].nil?
@city = args[:city] if args.key?(:city)
@line1 = args[:line1] if args.key?(:line1)
@line2 = args[:line2] if args.key?(:line2)
@line3 = args[:line3] if args.key?(:line3)
@location_name = args[:location_name] if args.key?(:location_name)
@state = args[:state] if args.key?(:state)
@zip = args[:zip] if args.key?(:zip)
end
end
@ -1030,8 +1030,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@official = args[:official] unless args[:official].nil?
@name = args[:name] if args.key?(:name)
@official = args[:official] if args.key?(:official)
end
end
@ -1109,17 +1109,17 @@ module Google
# Update properties of this object
def update!(**args)
@contests = args[:contests] unless args[:contests].nil?
@drop_off_locations = args[:drop_off_locations] unless args[:drop_off_locations].nil?
@early_vote_sites = args[:early_vote_sites] unless args[:early_vote_sites].nil?
@election = args[:election] unless args[:election].nil?
@kind = args[:kind] unless args[:kind].nil?
@mail_only = args[:mail_only] unless args[:mail_only].nil?
@normalized_input = args[:normalized_input] unless args[:normalized_input].nil?
@other_elections = args[:other_elections] unless args[:other_elections].nil?
@polling_locations = args[:polling_locations] unless args[:polling_locations].nil?
@precinct_id = args[:precinct_id] unless args[:precinct_id].nil?
@state = args[:state] unless args[:state].nil?
@contests = args[:contests] if args.key?(:contests)
@drop_off_locations = args[:drop_off_locations] if args.key?(:drop_off_locations)
@early_vote_sites = args[:early_vote_sites] if args.key?(:early_vote_sites)
@election = args[:election] if args.key?(:election)
@kind = args[:kind] if args.key?(:kind)
@mail_only = args[:mail_only] if args.key?(:mail_only)
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
@other_elections = args[:other_elections] if args.key?(:other_elections)
@polling_locations = args[:polling_locations] if args.key?(:polling_locations)
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
@state = args[:state] if args.key?(:state)
end
end
end

View File

@ -112,18 +112,18 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@section = args[:section] unless args[:section].nil?
@description_heading = args[:description_heading] unless args[:description_heading].nil?
@description = args[:description] unless args[:description].nil?
@room = args[:room] unless args[:room].nil?
@owner_id = args[:owner_id] unless args[:owner_id].nil?
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@update_time = args[:update_time] unless args[:update_time].nil?
@enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil?
@course_state = args[:course_state] unless args[:course_state].nil?
@alternate_link = args[:alternate_link] unless args[:alternate_link].nil?
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@section = args[:section] if args.key?(:section)
@description_heading = args[:description_heading] if args.key?(:description_heading)
@description = args[:description] if args.key?(:description)
@room = args[:room] if args.key?(:room)
@owner_id = args[:owner_id] if args.key?(:owner_id)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@update_time = args[:update_time] if args.key?(:update_time)
@enrollment_code = args[:enrollment_code] if args.key?(:enrollment_code)
@course_state = args[:course_state] if args.key?(:course_state)
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
end
end
@ -165,8 +165,8 @@ module Google
# Update properties of this object
def update!(**args)
@courses = args[:courses] unless args[:courses].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@courses = args[:courses] if args.key?(:courses)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -198,7 +198,7 @@ module Google
# Update properties of this object
def update!(**args)
@alias = args[:alias] unless args[:alias].nil?
@alias = args[:alias] if args.key?(:alias)
end
end
@ -223,8 +223,8 @@ module Google
# Update properties of this object
def update!(**args)
@aliases = args[:aliases] unless args[:aliases].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@aliases = args[:aliases] if args.key?(:aliases)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -261,10 +261,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@course_id = args[:course_id] unless args[:course_id].nil?
@role = args[:role] unless args[:role].nil?
@id = args[:id] if args.key?(:id)
@user_id = args[:user_id] if args.key?(:user_id)
@course_id = args[:course_id] if args.key?(:course_id)
@role = args[:role] if args.key?(:role)
end
end
@ -289,8 +289,8 @@ module Google
# Update properties of this object
def update!(**args)
@invitations = args[:invitations] unless args[:invitations].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@invitations = args[:invitations] if args.key?(:invitations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -329,11 +329,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@permissions = args[:permissions] unless args[:permissions].nil?
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@email_address = args[:email_address] if args.key?(:email_address)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -363,9 +363,9 @@ module Google
# Update properties of this object
def update!(**args)
@given_name = args[:given_name] unless args[:given_name].nil?
@family_name = args[:family_name] unless args[:family_name].nil?
@full_name = args[:full_name] unless args[:full_name].nil?
@given_name = args[:given_name] if args.key?(:given_name)
@family_name = args[:family_name] if args.key?(:family_name)
@full_name = args[:full_name] if args.key?(:full_name)
end
end
@ -384,7 +384,7 @@ module Google
# Update properties of this object
def update!(**args)
@permission = args[:permission] unless args[:permission].nil?
@permission = args[:permission] if args.key?(:permission)
end
end
@ -416,9 +416,9 @@ module Google
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] unless args[:course_id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@profile = args[:profile] unless args[:profile].nil?
@course_id = args[:course_id] if args.key?(:course_id)
@user_id = args[:user_id] if args.key?(:user_id)
@profile = args[:profile] if args.key?(:profile)
end
end
@ -443,8 +443,8 @@ module Google
# Update properties of this object
def update!(**args)
@teachers = args[:teachers] unless args[:teachers].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@teachers = args[:teachers] if args.key?(:teachers)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -476,9 +476,9 @@ module Google
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] unless args[:course_id].nil?
@user_id = args[:user_id] unless args[:user_id].nil?
@profile = args[:profile] unless args[:profile].nil?
@course_id = args[:course_id] if args.key?(:course_id)
@user_id = args[:user_id] if args.key?(:user_id)
@profile = args[:profile] if args.key?(:profile)
end
end
@ -503,8 +503,8 @@ module Google
# Update properties of this object
def update!(**args)
@students = args[:students] unless args[:students].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@students = args[:students] if args.key?(:students)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end

View File

@ -55,9 +55,9 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@open = args[:open] unless args[:open].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@name = args[:name] if args.key?(:name)
@open = args[:open] if args.key?(:open)
@display_name = args[:display_name] if args.key?(:display_name)
end
end
@ -83,8 +83,8 @@ module Google
# Update properties of this object
def update!(**args)
@billing_accounts = args[:billing_accounts] unless args[:billing_accounts].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -111,8 +111,8 @@ module Google
# Update properties of this object
def update!(**args)
@project_billing_info = args[:project_billing_info] unless args[:project_billing_info].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@project_billing_info = args[:project_billing_info] if args.key?(:project_billing_info)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -158,10 +158,10 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@billing_account_name = args[:billing_account_name] unless args[:billing_account_name].nil?
@billing_enabled = args[:billing_enabled] unless args[:billing_enabled].nil?
@name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id)
@billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
@billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
end
end
end

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/cloudbuild_v1/service.rb'
require 'google/apis/cloudbuild_v1/classes.rb'
require 'google/apis/cloudbuild_v1/representations.rb'
module Google
module Apis
# Google Cloud Container Builder API
#
# The Google Cloud Container Builder API lets you build container images in the
# cloud.
#
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20160128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,521 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudbuildV1
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` which can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting purpose.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There will be a
# common set of message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end
# Metadata for build operations.
class BuildOperationMetadata
include Google::Apis::Core::Hashable
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@build = args[:build] if args.key?(:build)
end
end
# Source describes the location of the source in a supported storage
# service.
class Source
include Google::Apis::Core::Hashable
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `storageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :storage_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@storage_source = args[:storage_source] if args.key?(:storage_source)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` which can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting purpose.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudbuildV1::Status]
attr_accessor :error
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping above, the
# `name` should have the format of `operations/some/unique/name`.
# 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)
@error = args[:error] if args.key?(:error)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
end
end
# BuiltImage describes an image built by the pipeline.
class BuiltImage
include Google::Apis::Core::Hashable
# Docker Registry 2.0 digest.
# Corresponds to the JSON property `digest`
# @return [String]
attr_accessor :digest
# Name used to push the container image to Google Container Registry, as
# presented to `docker push`.
# 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)
@digest = args[:digest] if args.key?(:digest)
@name = args[:name] if args.key?(:name)
end
end
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
class StorageSource
include Google::Apis::Core::Hashable
# Google Cloud Storage bucket containing source (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Corresponds to the JSON property `bucket`
# @return [String]
attr_accessor :bucket
# Google Cloud Storage object containing source.
# This object must be a gzipped archive file (.tar.gz) containing source to
# build.
# Corresponds to the JSON property `object`
# @return [String]
attr_accessor :object
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bucket = args[:bucket] if args.key?(:bucket)
@object = args[:object] if args.key?(:object)
end
end
# Results describes the artifacts created by the build pipeline.
class Results
include Google::Apis::Core::Hashable
# Images that were built as a part of the build.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
attr_accessor :images
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@images = args[:images] if args.key?(:images)
end
end
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
class Build
include Google::Apis::Core::Hashable
# Unique identifier of the build.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Status of the build.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Time at whihc execution of the build was finished.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
attr_accessor :finish_time
# Amount of time that this build should be allowed to run, to second
# granularity. If this amount of time elapses, work on the build will cease
# and the build status will be TIMEOUT.
# Default time is ten minutes.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
attr_accessor :steps
# Source describes the location of the source in a supported storage
# service.
# Corresponds to the JSON property `source`
# @return [Google::Apis::CloudbuildV1::Source]
attr_accessor :source
# Time at which the build was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# List of images expected to be built and pushed to Google Container
# Registry. If an image is listed here and the image is not produced by
# one of the build steps, the build will fail. Any images present when
# the build steps are complete will be pushed to Container Registry.
# Corresponds to the JSON property `images`
# @return [Array<String>]
attr_accessor :images
# Time at which execution of the build was started.
# @OutputOnly
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
# Corresponds to the JSON property `logsBucket`
# @return [String]
attr_accessor :logs_bucket
# ID of the project.
# @OutputOnly.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@results = args[:results] if args.key?(:results)
@status = args[:status] if args.key?(:status)
@finish_time = args[:finish_time] if args.key?(:finish_time)
@timeout = args[:timeout] if args.key?(:timeout)
@steps = args[:steps] if args.key?(:steps)
@source = args[:source] if args.key?(:source)
@create_time = args[:create_time] if args.key?(:create_time)
@images = args[:images] if args.key?(:images)
@start_time = args[:start_time] if args.key?(:start_time)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
# BuildStep describes a step to perform in the build pipeline.
class BuildStep
include Google::Apis::Core::Hashable
# Command-line arguments to use when running this step's container.
# Corresponds to the JSON property `args`
# @return [Array<String>]
attr_accessor :args
# Working directory (relative to project source root) to use when running
# this operation's container.
# Corresponds to the JSON property `dir`
# @return [String]
attr_accessor :dir
# Additional environment variables to set for this step's container.
# Corresponds to the JSON property `env`
# @return [Array<String>]
attr_accessor :env
# Name of the container image to use for creating this stage in the
# pipeline, as presented to `docker pull`.
# 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)
@args = args[:args] if args.key?(:args)
@dir = args[:dir] if args.key?(:dir)
@env = args[:env] if args.key?(:env)
@name = args[:name] if args.key?(:name)
end
end
# Response including listed builds.
class ListBuildsResponse
include Google::Apis::Core::Hashable
# Token to receive the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Builds will be sorted by create_time, descending.
# Corresponds to the JSON property `builds`
# @return [Array<Google::Apis::CloudbuildV1::Build>]
attr_accessor :builds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@builds = args[:builds] if args.key?(:builds)
end
end
end
end
end

View File

@ -0,0 +1,190 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudbuildV1
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BuildOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BuiltImage
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Results
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Build
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CancelBuildRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BuildStep
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListBuildsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class BuildOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
property :done, as: 'done'
hash :response, as: 'response'
hash :metadata, as: 'metadata'
property :name, as: 'name'
end
end
class BuiltImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :name, as: 'name'
end
end
class StorageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket, as: 'bucket'
property :object, as: 'object'
end
end
class Results
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
end
end
class Build
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
property :status, as: 'status'
property :finish_time, as: 'finishTime'
property :timeout, as: 'timeout'
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
property :create_time, as: 'createTime'
collection :images, as: 'images'
property :start_time, as: 'startTime'
property :logs_bucket, as: 'logsBucket'
property :project_id, as: 'projectId'
end
end
class CancelBuildRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
end
end
class BuildStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args'
property :dir, as: 'dir'
collection :env, as: 'env'
property :name, as: 'name'
end
end
class ListBuildsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
end
end
end
end
end

View File

@ -0,0 +1,278 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudbuildV1
# Google Cloud Container Builder API
#
# The Google Cloud Container Builder API lets you build container images in the
# cloud.
#
# @example
# require 'google/apis/cloudbuild_v1'
#
# Cloudbuild = Google::Apis::CloudbuildV1 # Alias the module
# service = Cloudbuild::CloudbuildService.new
#
# @see https://cloud.google.com/container-builder/docs/
class CloudbuildService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://cloudbuild.googleapis.com/', '')
end
# Returns information about a previously requested build.
# The Build that is returned includes its status (e.g., success or failure,
# or in-progress), and timing information.
# @param [String] project_id
# ID of the project.
# @param [String] id
# ID of the build.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Build]
#
# @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_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
command.response_class = Google::Apis::CloudbuildV1::Build
command.params['projectId'] = project_id unless project_id.nil?
command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Starts a build with the specified configuration.
# The long-running Operation returned by this method will include the ID of
# the build, which can be passed to GetBuild to determine its status (e.g.,
# success or failure).
# @param [String] project_id
# ID of the project.
# @param [Google::Apis::CloudbuildV1::Build] build_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
command.request_object = build_object
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists previously requested builds.
# Previously requested builds may still be in-progress, or may have finished
# successfully or unsuccessfully.
# @param [String] project_id
# ID of the project.
# @param [Fixnum] page_size
# Number of results to return in the list.
# @param [String] page_token
# Token to provide to skip to a particular spot in the list.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
#
# @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_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Cancels a requested build in progress.
# @param [String] project_id
# ID of the project.
# @param [String] id
# ID of the build.
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Build]
#
# @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 cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
command.request_object = cancel_build_request_object
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
command.response_class = Google::Apis::CloudbuildV1::Build
command.params['projectId'] = project_id unless project_id.nil?
command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding below allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`.
# @param [String] name
# The name of the operation collection.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
#
# @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_operations(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -41,7 +41,7 @@ module Google
# Update properties of this object
def update!(**args)
@debuggee = args[:debuggee] unless args[:debuggee].nil?
@debuggee = args[:debuggee] if args.key?(:debuggee)
end
end
@ -133,17 +133,17 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@project = args[:project] unless args[:project].nil?
@uniquifier = args[:uniquifier] unless args[:uniquifier].nil?
@description = args[:description] unless args[:description].nil?
@is_inactive = args[:is_inactive] unless args[:is_inactive].nil?
@agent_version = args[:agent_version] unless args[:agent_version].nil?
@is_disabled = args[:is_disabled] unless args[:is_disabled].nil?
@status = args[:status] unless args[:status].nil?
@source_contexts = args[:source_contexts] unless args[:source_contexts].nil?
@ext_source_contexts = args[:ext_source_contexts] unless args[:ext_source_contexts].nil?
@labels = args[:labels] unless args[:labels].nil?
@id = args[:id] if args.key?(:id)
@project = args[:project] if args.key?(:project)
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
@description = args[:description] if args.key?(:description)
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
@agent_version = args[:agent_version] if args.key?(:agent_version)
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
@status = args[:status] if args.key?(:status)
@source_contexts = args[:source_contexts] if args.key?(:source_contexts)
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
@labels = args[:labels] if args.key?(:labels)
end
end
@ -176,9 +176,9 @@ module Google
# Update properties of this object
def update!(**args)
@is_error = args[:is_error] unless args[:is_error].nil?
@refers_to = args[:refers_to] unless args[:refers_to].nil?
@description = args[:description] unless args[:description].nil?
@is_error = args[:is_error] if args.key?(:is_error)
@refers_to = args[:refers_to] if args.key?(:refers_to)
@description = args[:description] if args.key?(:description)
end
end
@ -206,8 +206,8 @@ module Google
# Update properties of this object
def update!(**args)
@format = args[:format] unless args[:format].nil?
@parameters = args[:parameters] unless args[:parameters].nil?
@format = args[:format] if args.key?(:format)
@parameters = args[:parameters] if args.key?(:parameters)
end
end
@ -244,10 +244,10 @@ module Google
# Update properties of this object
def update!(**args)
@cloud_repo = args[:cloud_repo] unless args[:cloud_repo].nil?
@cloud_workspace = args[:cloud_workspace] unless args[:cloud_workspace].nil?
@gerrit = args[:gerrit] unless args[:gerrit].nil?
@git = args[:git] unless args[:git].nil?
@cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
@cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
@gerrit = args[:gerrit] if args.key?(:gerrit)
@git = args[:git] if args.key?(:git)
end
end
@ -282,10 +282,10 @@ module Google
# Update properties of this object
def update!(**args)
@repo_id = args[:repo_id] unless args[:repo_id].nil?
@revision_id = args[:revision_id] unless args[:revision_id].nil?
@alias_name = args[:alias_name] unless args[:alias_name].nil?
@alias_context = args[:alias_context] unless args[:alias_context].nil?
@repo_id = args[:repo_id] if args.key?(:repo_id)
@revision_id = args[:revision_id] if args.key?(:revision_id)
@alias_name = args[:alias_name] if args.key?(:alias_name)
@alias_context = args[:alias_context] if args.key?(:alias_context)
end
end
@ -310,8 +310,8 @@ module Google
# Update properties of this object
def update!(**args)
@project_repo_id = args[:project_repo_id] unless args[:project_repo_id].nil?
@uid = args[:uid] unless args[:uid].nil?
@project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id)
@uid = args[:uid] if args.key?(:uid)
end
end
@ -336,8 +336,8 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@repo_name = args[:repo_name] unless args[:repo_name].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
end
end
@ -361,8 +361,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -389,8 +389,8 @@ module Google
# Update properties of this object
def update!(**args)
@workspace_id = args[:workspace_id] unless args[:workspace_id].nil?
@snapshot_id = args[:snapshot_id] unless args[:snapshot_id].nil?
@workspace_id = args[:workspace_id] if args.key?(:workspace_id)
@snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id)
end
end
@ -417,8 +417,8 @@ module Google
# Update properties of this object
def update!(**args)
@repo_id = args[:repo_id] unless args[:repo_id].nil?
@name = args[:name] unless args[:name].nil?
@repo_id = args[:repo_id] if args.key?(:repo_id)
@name = args[:name] if args.key?(:name)
end
end
@ -458,11 +458,11 @@ module Google
# Update properties of this object
def update!(**args)
@host_uri = args[:host_uri] unless args[:host_uri].nil?
@gerrit_project = args[:gerrit_project] unless args[:gerrit_project].nil?
@revision_id = args[:revision_id] unless args[:revision_id].nil?
@alias_name = args[:alias_name] unless args[:alias_name].nil?
@alias_context = args[:alias_context] unless args[:alias_context].nil?
@host_uri = args[:host_uri] if args.key?(:host_uri)
@gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
@revision_id = args[:revision_id] if args.key?(:revision_id)
@alias_name = args[:alias_name] if args.key?(:alias_name)
@alias_context = args[:alias_context] if args.key?(:alias_context)
end
end
@ -487,8 +487,8 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@revision_id = args[:revision_id] unless args[:revision_id].nil?
@url = args[:url] if args.key?(:url)
@revision_id = args[:revision_id] if args.key?(:revision_id)
end
end
@ -514,8 +514,8 @@ module Google
# Update properties of this object
def update!(**args)
@context = args[:context] unless args[:context].nil?
@labels = args[:labels] unless args[:labels].nil?
@context = args[:context] if args.key?(:context)
@labels = args[:labels] if args.key?(:labels)
end
end
@ -538,7 +538,7 @@ module Google
# Update properties of this object
def update!(**args)
@debuggee = args[:debuggee] unless args[:debuggee].nil?
@debuggee = args[:debuggee] if args.key?(:debuggee)
end
end
@ -571,9 +571,9 @@ module Google
# Update properties of this object
def update!(**args)
@breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
@next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
@wait_expired = args[:wait_expired] unless args[:wait_expired].nil?
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
@wait_expired = args[:wait_expired] if args.key?(:wait_expired)
end
end
@ -692,21 +692,21 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@action = args[:action] unless args[:action].nil?
@location = args[:location] unless args[:location].nil?
@condition = args[:condition] unless args[:condition].nil?
@expressions = args[:expressions] unless args[:expressions].nil?
@log_message_format = args[:log_message_format] unless args[:log_message_format].nil?
@log_level = args[:log_level] unless args[:log_level].nil?
@is_final_state = args[:is_final_state] unless args[:is_final_state].nil?
@create_time = args[:create_time] unless args[:create_time].nil?
@final_time = args[:final_time] unless args[:final_time].nil?
@user_email = args[:user_email] unless args[:user_email].nil?
@status = args[:status] unless args[:status].nil?
@stack_frames = args[:stack_frames] unless args[:stack_frames].nil?
@evaluated_expressions = args[:evaluated_expressions] unless args[:evaluated_expressions].nil?
@variable_table = args[:variable_table] unless args[:variable_table].nil?
@id = args[:id] if args.key?(:id)
@action = args[:action] if args.key?(:action)
@location = args[:location] if args.key?(:location)
@condition = args[:condition] if args.key?(:condition)
@expressions = args[:expressions] if args.key?(:expressions)
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
@log_level = args[:log_level] if args.key?(:log_level)
@is_final_state = args[:is_final_state] if args.key?(:is_final_state)
@create_time = args[:create_time] if args.key?(:create_time)
@final_time = args[:final_time] if args.key?(:final_time)
@user_email = args[:user_email] if args.key?(:user_email)
@status = args[:status] if args.key?(:status)
@stack_frames = args[:stack_frames] if args.key?(:stack_frames)
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
@variable_table = args[:variable_table] if args.key?(:variable_table)
end
end
@ -730,8 +730,8 @@ module Google
# Update properties of this object
def update!(**args)
@path = args[:path] unless args[:path].nil?
@line = args[:line] unless args[:line].nil?
@path = args[:path] if args.key?(:path)
@line = args[:line] if args.key?(:line)
end
end
@ -767,10 +767,10 @@ module Google
# Update properties of this object
def update!(**args)
@function = args[:function] unless args[:function].nil?
@location = args[:location] unless args[:location].nil?
@arguments = args[:arguments] unless args[:arguments].nil?
@locals = args[:locals] unless args[:locals].nil?
@function = args[:function] if args.key?(:function)
@location = args[:location] if args.key?(:location)
@arguments = args[:arguments] if args.key?(:arguments)
@locals = args[:locals] if args.key?(:locals)
end
end
@ -854,12 +854,12 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@type = args[:type] unless args[:type].nil?
@members = args[:members] unless args[:members].nil?
@var_table_index = args[:var_table_index] unless args[:var_table_index].nil?
@status = args[:status] unless args[:status].nil?
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
@type = args[:type] if args.key?(:type)
@members = args[:members] if args.key?(:members)
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
@status = args[:status] if args.key?(:status)
end
end
@ -878,7 +878,7 @@ module Google
# Update properties of this object
def update!(**args)
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
end
end
@ -911,7 +911,7 @@ module Google
# Update properties of this object
def update!(**args)
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
end
end
@ -930,7 +930,7 @@ module Google
# Update properties of this object
def update!(**args)
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
@breakpoint = args[:breakpoint] if args.key?(:breakpoint)
end
end
@ -973,8 +973,8 @@ module Google
# Update properties of this object
def update!(**args)
@breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
@next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
end
end
@ -996,7 +996,7 @@ module Google
# Update properties of this object
def update!(**args)
@debuggees = args[:debuggees] unless args[:debuggees].nil?
@debuggees = args[:debuggees] if args.key?(:debuggees)
end
end
end

View File

@ -0,0 +1,34 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/cloudlatencytest_v2/service.rb'
require 'google/apis/cloudlatencytest_v2/classes.rb'
require 'google/apis/cloudlatencytest_v2/representations.rb'
module Google
module Apis
# Google Cloud Network Performance Monitoring API
#
# A Test API to report latency data.
#
# @see
module CloudlatencytestV2
VERSION = 'V2'
REVISION = '20150508'
# View monitoring data for all of your Google Cloud and API projects
AUTH_MONITORING_READONLY = 'https://www.googleapis.com/auth/monitoring.readonly'
end
end
end

View File

@ -0,0 +1,195 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudlatencytestV2
#
class AggregatedStats
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `stats`
# @return [Array<Google::Apis::CloudlatencytestV2::Stats>]
attr_accessor :stats
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stats = args[:stats] if args.key?(:stats)
end
end
#
class AggregatedStatsReply
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `testValue`
# @return [String]
attr_accessor :test_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@test_value = args[:test_value] if args.key?(:test_value)
end
end
#
class DoubleValue
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
#
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@value = args[:value] if args.key?(:value)
end
end
#
class IntValue
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@value = args[:value] if args.key?(:value)
end
end
#
class Stats
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `doubleValues`
# @return [Array<Google::Apis::CloudlatencytestV2::DoubleValue>]
attr_accessor :double_values
#
# Corresponds to the JSON property `intValues`
# @return [Array<Google::Apis::CloudlatencytestV2::IntValue>]
attr_accessor :int_values
#
# Corresponds to the JSON property `stringValues`
# @return [Array<Google::Apis::CloudlatencytestV2::StringValue>]
attr_accessor :string_values
#
# Corresponds to the JSON property `time`
# @return [Float]
attr_accessor :time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@double_values = args[:double_values] if args.key?(:double_values)
@int_values = args[:int_values] if args.key?(:int_values)
@string_values = args[:string_values] if args.key?(:string_values)
@time = args[:time] if args.key?(:time)
end
end
#
class StatsReply
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `testValue`
# @return [String]
attr_accessor :test_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@test_value = args[:test_value] if args.key?(:test_value)
end
end
#
class StringValue
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@value = args[:value] if args.key?(:value)
end
end
end
end
end

View File

@ -0,0 +1,113 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudlatencytestV2
class AggregatedStats
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class AggregatedStatsReply
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DoubleValue
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class IntValue
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Stats
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StatsReply
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StringValue
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class AggregatedStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :stats, as: 'stats', class: Google::Apis::CloudlatencytestV2::Stats, decorator: Google::Apis::CloudlatencytestV2::Stats::Representation
end
end
class AggregatedStatsReply
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :test_value, as: 'testValue'
end
end
class DoubleValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :value, as: 'value'
end
end
class IntValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :value, as: 'value'
end
end
class Stats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :double_values, as: 'doubleValues', class: Google::Apis::CloudlatencytestV2::DoubleValue, decorator: Google::Apis::CloudlatencytestV2::DoubleValue::Representation
collection :int_values, as: 'intValues', class: Google::Apis::CloudlatencytestV2::IntValue, decorator: Google::Apis::CloudlatencytestV2::IntValue::Representation
collection :string_values, as: 'stringValues', class: Google::Apis::CloudlatencytestV2::StringValue, decorator: Google::Apis::CloudlatencytestV2::StringValue::Representation
property :time, as: 'time'
end
end
class StatsReply
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :test_value, as: 'testValue'
end
end
class StringValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
property :value, as: 'value'
end
end
end
end
end

View File

@ -0,0 +1,135 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudlatencytestV2
# Google Cloud Network Performance Monitoring API
#
# A Test API to report latency data.
#
# @example
# require 'google/apis/cloudlatencytest_v2'
#
# Cloudlatencytest = Google::Apis::CloudlatencytestV2 # Alias the module
# service = Cloudlatencytest::CloudlatencytestService.new
#
# @see
class CloudlatencytestService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://cloudlatencytest-pa.googleapis.com/', 'v2/statscollection/')
end
# RPC to update the new TCP stats.
# @param [Google::Apis::CloudlatencytestV2::AggregatedStats] aggregated_stats_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudlatencytestV2::AggregatedStatsReply] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudlatencytestV2::AggregatedStatsReply]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_aggregated_stats(aggregated_stats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'updateaggregatedstats', options)
command.request_representation = Google::Apis::CloudlatencytestV2::AggregatedStats::Representation
command.request_object = aggregated_stats_object
command.response_representation = Google::Apis::CloudlatencytestV2::AggregatedStatsReply::Representation
command.response_class = Google::Apis::CloudlatencytestV2::AggregatedStatsReply
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# RPC to update the new TCP stats.
# @param [Google::Apis::CloudlatencytestV2::Stats] stats_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudlatencytestV2::StatsReply] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudlatencytestV2::StatsReply]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_stats(stats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'updatestats', options)
command.request_representation = Google::Apis::CloudlatencytestV2::Stats::Representation
command.request_object = stats_object
command.response_representation = Google::Apis::CloudlatencytestV2::StatsReply::Representation
command.response_class = Google::Apis::CloudlatencytestV2::StatsReply
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/monitoring/v2beta2/
module CloudmonitoringV2beta2
VERSION = 'V2beta2'
REVISION = '20160120'
REVISION = '20160124'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -38,7 +38,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -58,7 +58,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -90,9 +90,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@metrics = args[:metrics] unless args[:metrics].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@kind = args[:kind] if args.key?(:kind)
@metrics = args[:metrics] if args.key?(:metrics)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -112,7 +112,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -154,11 +154,11 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@oldest = args[:oldest] unless args[:oldest].nil?
@timeseries = args[:timeseries] unless args[:timeseries].nil?
@youngest = args[:youngest] unless args[:youngest].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@oldest = args[:oldest] if args.key?(:oldest)
@timeseries = args[:timeseries] if args.key?(:timeseries)
@youngest = args[:youngest] if args.key?(:youngest)
end
end
@ -178,7 +178,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -221,11 +221,11 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@oldest = args[:oldest] unless args[:oldest].nil?
@timeseries = args[:timeseries] unless args[:timeseries].nil?
@youngest = args[:youngest] unless args[:youngest].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@oldest = args[:oldest] if args.key?(:oldest)
@timeseries = args[:timeseries] if args.key?(:timeseries)
@youngest = args[:youngest] if args.key?(:youngest)
end
end
@ -266,11 +266,11 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@labels = args[:labels] unless args[:labels].nil?
@name = args[:name] unless args[:name].nil?
@project = args[:project] unless args[:project].nil?
@type_descriptor = args[:type_descriptor] unless args[:type_descriptor].nil?
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@project = args[:project] if args.key?(:project)
@type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor)
end
end
@ -295,8 +295,8 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@key = args[:key] unless args[:key].nil?
@description = args[:description] if args.key?(:description)
@key = args[:key] if args.key?(:key)
end
end
@ -322,8 +322,8 @@ module Google
# Update properties of this object
def update!(**args)
@metric_type = args[:metric_type] unless args[:metric_type].nil?
@value_type = args[:value_type] unless args[:value_type].nil?
@metric_type = args[:metric_type] if args.key?(:metric_type)
@value_type = args[:value_type] if args.key?(:value_type)
end
end
@ -385,13 +385,13 @@ module Google
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] unless args[:bool_value].nil?
@distribution_value = args[:distribution_value] unless args[:distribution_value].nil?
@double_value = args[:double_value] unless args[:double_value].nil?
@end = args[:end] unless args[:end].nil?
@int64_value = args[:int64_value] unless args[:int64_value].nil?
@start = args[:start] unless args[:start].nil?
@string_value = args[:string_value] unless args[:string_value].nil?
@bool_value = args[:bool_value] if args.key?(:bool_value)
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
@double_value = args[:double_value] if args.key?(:double_value)
@end = args[:end] if args.key?(:end)
@int64_value = args[:int64_value] if args.key?(:int64_value)
@start = args[:start] if args.key?(:start)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
@ -425,9 +425,9 @@ module Google
# Update properties of this object
def update!(**args)
@buckets = args[:buckets] unless args[:buckets].nil?
@overflow_bucket = args[:overflow_bucket] unless args[:overflow_bucket].nil?
@underflow_bucket = args[:underflow_bucket] unless args[:underflow_bucket].nil?
@buckets = args[:buckets] if args.key?(:buckets)
@overflow_bucket = args[:overflow_bucket] if args.key?(:overflow_bucket)
@underflow_bucket = args[:underflow_bucket] if args.key?(:underflow_bucket)
end
end
@ -458,9 +458,9 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] unless args[:count].nil?
@lower_bound = args[:lower_bound] unless args[:lower_bound].nil?
@upper_bound = args[:upper_bound] unless args[:upper_bound].nil?
@count = args[:count] if args.key?(:count)
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
@ -485,8 +485,8 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] unless args[:count].nil?
@lower_bound = args[:lower_bound] unless args[:lower_bound].nil?
@count = args[:count] if args.key?(:count)
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
end
end
@ -511,8 +511,8 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] unless args[:count].nil?
@upper_bound = args[:upper_bound] unless args[:upper_bound].nil?
@count = args[:count] if args.key?(:count)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
@ -540,8 +540,8 @@ module Google
# Update properties of this object
def update!(**args)
@points = args[:points] unless args[:points].nil?
@timeseries_desc = args[:timeseries_desc] unless args[:timeseries_desc].nil?
@points = args[:points] if args.key?(:points)
@timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc)
end
end
@ -570,9 +570,9 @@ module Google
# Update properties of this object
def update!(**args)
@labels = args[:labels] unless args[:labels].nil?
@metric = args[:metric] unless args[:metric].nil?
@project = args[:project] unless args[:project].nil?
@labels = args[:labels] if args.key?(:labels)
@metric = args[:metric] if args.key?(:metric)
@project = args[:project] if args.key?(:project)
end
end
@ -596,8 +596,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
@ -623,8 +623,8 @@ module Google
# Update properties of this object
def update!(**args)
@point = args[:point] unless args[:point].nil?
@timeseries_desc = args[:timeseries_desc] unless args[:timeseries_desc].nil?
@point = args[:point] if args.key?(:point)
@timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc)
end
end
@ -650,8 +650,8 @@ module Google
# Update properties of this object
def update!(**args)
@common_labels = args[:common_labels] unless args[:common_labels].nil?
@timeseries = args[:timeseries] unless args[:timeseries].nil?
@common_labels = args[:common_labels] if args.key?(:common_labels)
@timeseries = args[:timeseries] if args.key?(:timeseries)
end
end
@ -671,7 +671,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
end

View File

@ -82,13 +82,13 @@ module Google
# Update properties of this object
def update!(**args)
@project_number = args[:project_number] unless args[:project_number].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@lifecycle_state = args[:lifecycle_state] unless args[:lifecycle_state].nil?
@name = args[:name] unless args[:name].nil?
@create_time = args[:create_time] unless args[:create_time].nil?
@labels = args[:labels] unless args[:labels].nil?
@parent = args[:parent] unless args[:parent].nil?
@project_number = args[:project_number] if args.key?(:project_number)
@project_id = args[:project_id] if args.key?(:project_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@name = args[:name] if args.key?(:name)
@create_time = args[:create_time] if args.key?(:create_time)
@labels = args[:labels] if args.key?(:labels)
@parent = args[:parent] if args.key?(:parent)
end
end
@ -117,8 +117,8 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] unless args[:type].nil?
@id = args[:id] unless args[:id].nil?
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
@ -149,8 +149,8 @@ module Google
# Update properties of this object
def update!(**args)
@projects = args[:projects] unless args[:projects].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@projects = args[:projects] if args.key?(:projects)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -227,9 +227,9 @@ module Google
# Update properties of this object
def update!(**args)
@version = args[:version] unless args[:version].nil?
@bindings = args[:bindings] unless args[:bindings].nil?
@etag = args[:etag] unless args[:etag].nil?
@version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
@ -265,8 +265,8 @@ module Google
# Update properties of this object
def update!(**args)
@role = args[:role] unless args[:role].nil?
@members = args[:members] unless args[:members].nil?
@role = args[:role] if args.key?(:role)
@members = args[:members] if args.key?(:members)
end
end
@ -294,7 +294,7 @@ module Google
# Update properties of this object
def update!(**args)
@policy = args[:policy] unless args[:policy].nil?
@policy = args[:policy] if args.key?(:policy)
end
end
@ -315,7 +315,7 @@ module Google
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] unless args[:permissions].nil?
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -334,7 +334,7 @@ module Google
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] unless args[:permissions].nil?
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -362,8 +362,8 @@ module Google
# Update properties of this object
def update!(**args)
@organizations = args[:organizations] unless args[:organizations].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@organizations = args[:organizations] if args.key?(:organizations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -404,10 +404,10 @@ module Google
# Update properties of this object
def update!(**args)
@organization_id = args[:organization_id] unless args[:organization_id].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@owner = args[:owner] unless args[:owner].nil?
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@organization_id = args[:organization_id] if args.key?(:organization_id)
@display_name = args[:display_name] if args.key?(:display_name)
@owner = args[:owner] if args.key?(:owner)
@creation_time = args[:creation_time] if args.key?(:creation_time)
end
end
@ -429,7 +429,7 @@ module Google
# Update properties of this object
def update!(**args)
@directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil?
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
end
end
end

View File

@ -44,8 +44,8 @@ module Google
# Update properties of this object
def update!(**args)
@traces = args[:traces] unless args[:traces].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@traces = args[:traces] if args.key?(:traces)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -77,9 +77,9 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@trace_id = args[:trace_id] unless args[:trace_id].nil?
@spans = args[:spans] unless args[:spans].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@trace_id = args[:trace_id] if args.key?(:trace_id)
@spans = args[:spans] if args.key?(:spans)
end
end
@ -138,13 +138,13 @@ module Google
# Update properties of this object
def update!(**args)
@span_id = args[:span_id] unless args[:span_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@parent_span_id = args[:parent_span_id] unless args[:parent_span_id].nil?
@labels = args[:labels] unless args[:labels].nil?
@span_id = args[:span_id] if args.key?(:span_id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time)
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
@labels = args[:labels] if args.key?(:labels)
end
end
@ -163,7 +163,7 @@ module Google
# Update properties of this object
def update!(**args)
@traces = args[:traces] unless args[:traces].nil?
@traces = args[:traces] if args.key?(:traces)
end
end

View File

@ -44,8 +44,8 @@ module Google
# Update properties of this object
def update!(**args)
@keys = args[:keys] unless args[:keys].nil?
@sudoer = args[:sudoer] unless args[:sudoer].nil?
@keys = args[:keys] if args.key?(:keys)
@sudoer = args[:sudoer] if args.key?(:sudoer)
end
end
@ -96,13 +96,13 @@ module Google
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@members = args[:members] unless args[:members].nil?
@name = args[:name] unless args[:name].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@members = args[:members] if args.key?(:members)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -142,11 +142,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -165,7 +165,7 @@ module Google
# Update properties of this object
def update!(**args)
@users = args[:users] unless args[:users].nil?
@users = args[:users] if args.key?(:users)
end
end
@ -184,7 +184,7 @@ module Google
# Update properties of this object
def update!(**args)
@users = args[:users] unless args[:users].nil?
@users = args[:users] if args.key?(:users)
end
end
@ -217,9 +217,9 @@ module Google
# Update properties of this object
def update!(**args)
@group_views = args[:group_views] unless args[:group_views].nil?
@kind = args[:kind] unless args[:kind].nil?
@user_views = args[:user_views] unless args[:user_views].nil?
@group_views = args[:group_views] if args.key?(:group_views)
@kind = args[:kind] if args.key?(:kind)
@user_views = args[:user_views] if args.key?(:user_views)
end
end
@ -238,7 +238,7 @@ module Google
# Update properties of this object
def update!(**args)
@resource = args[:resource] unless args[:resource].nil?
@resource = args[:resource] if args.key?(:resource)
end
end
@ -260,7 +260,7 @@ module Google
# Update properties of this object
def update!(**args)
@resource = args[:resource] unless args[:resource].nil?
@resource = args[:resource] if args.key?(:resource)
end
end
@ -289,9 +289,9 @@ module Google
# Update properties of this object
def update!(**args)
@gid = args[:gid] unless args[:gid].nil?
@group_name = args[:group_name] unless args[:group_name].nil?
@members = args[:members] unless args[:members].nil?
@gid = args[:gid] if args.key?(:gid)
@group_name = args[:group_name] if args.key?(:group_name)
@members = args[:members] if args.key?(:members)
end
end
@ -335,12 +335,12 @@ module Google
# Update properties of this object
def update!(**args)
@gecos = args[:gecos] unless args[:gecos].nil?
@gid = args[:gid] unless args[:gid].nil?
@home_directory = args[:home_directory] unless args[:home_directory].nil?
@shell = args[:shell] unless args[:shell].nil?
@uid = args[:uid] unless args[:uid].nil?
@username = args[:username] unless args[:username].nil?
@gecos = args[:gecos] if args.key?(:gecos)
@gid = args[:gid] if args.key?(:gid)
@home_directory = args[:home_directory] if args.key?(:home_directory)
@shell = args[:shell] if args.key?(:shell)
@uid = args[:uid] if args.key?(:uid)
@username = args[:username] if args.key?(:username)
end
end
@ -481,28 +481,28 @@ module Google
# Update properties of this object
def update!(**args)
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@error = args[:error] unless args[:error].nil?
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@operation_type = args[:operation_type] unless args[:operation_type].nil?
@progress = args[:progress] unless args[:progress].nil?
@region = args[:region] unless args[:region].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@status = args[:status] unless args[:status].nil?
@status_message = args[:status_message] unless args[:status_message].nil?
@target_id = args[:target_id] unless args[:target_id].nil?
@target_link = args[:target_link] unless args[:target_link].nil?
@user = args[:user] unless args[:user].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@zone = args[:zone] unless args[:zone].nil?
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@end_time = args[:end_time] if args.key?(:end_time)
@error = args[:error] if args.key?(:error)
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@progress = args[:progress] if args.key?(:progress)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@target_id = args[:target_id] if args.key?(:target_id)
@target_link = args[:target_link] if args.key?(:target_link)
@user = args[:user] if args.key?(:user)
@warnings = args[:warnings] if args.key?(:warnings)
@zone = args[:zone] if args.key?(:zone)
end
# [Output Only] If errors are generated during processing of the operation, this
@ -521,7 +521,7 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@errors = args[:errors] if args.key?(:errors)
end
#
@ -550,9 +550,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@location = args[:location] unless args[:location].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
@ -582,9 +582,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -607,8 +607,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
@ -650,11 +650,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -696,11 +696,11 @@ module Google
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@expiration_timestamp = args[:expiration_timestamp] unless args[:expiration_timestamp].nil?
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
@key = args[:key] unless args[:key].nil?
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@key = args[:key] if args.key?(:key)
end
end
@ -763,15 +763,15 @@ module Google
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@groups = args[:groups] unless args[:groups].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@owner = args[:owner] unless args[:owner].nil?
@public_keys = args[:public_keys] unless args[:public_keys].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@groups = args[:groups] if args.key?(:groups)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@owner = args[:owner] if args.key?(:owner)
@public_keys = args[:public_keys] if args.key?(:public_keys)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -811,11 +811,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20160112'
REVISION = '20160120'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -6499,44 +6499,6 @@ module Google
execute_or_queue_command(command, &block)
end
# [Deprecated] Use setUsageExportBucket instead.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::UsageExportLocation] usage_export_location_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_project_usage_export_cloud_storage_bucket(project, usage_export_location_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/setUsageExportCloudStorageBucket', options)
command.request_representation = Google::Apis::ComputeBeta::UsageExportLocation::Representation
command.request_object = usage_export_location_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified region-specific Operations resource.
# @param [String] project
# Project ID for this request.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20160112'
REVISION = '20160120'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -390,6 +390,10 @@ module Google
end
end
class InstancesSetMachineTypeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class License
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -574,6 +578,30 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Subnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SubnetworkAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SubnetworkList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SubnetworksScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
end
class Tags
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -1492,6 +1520,7 @@ module Google
property :network, as: 'network'
property :self_link, as: 'selfLink'
property :size, as: 'size'
property :subnetwork, as: 'subnetwork'
property :zone, as: 'zone'
end
end
@ -1836,6 +1865,13 @@ module Google
end
end
class InstancesSetMachineTypeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :machine_type, as: 'machineType'
end
end
class License
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1994,6 +2030,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :i_pv4_range, as: 'IPv4Range'
property :auto_create_subnetworks, as: 'autoCreateSubnetworks'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :gateway_i_pv4, as: 'gatewayIPv4'
@ -2001,6 +2038,7 @@ module Google
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
collection :subnetworks, as: 'subnetworks'
end
end
@ -2012,6 +2050,7 @@ module Google
property :name, as: 'name'
property :network, as: 'network'
property :network_ip, as: 'networkIP'
property :subnetwork, as: 'subnetwork'
end
end
@ -2365,6 +2404,74 @@ module Google
end
end
class Subnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :gateway_address, as: 'gatewayAddress'
property :id, as: 'id'
property :ip_cidr_range, as: 'ipCidrRange'
property :kind, as: 'kind'
property :name, as: 'name'
property :network, as: 'network'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class SubnetworkAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeV1::SubnetworksScopedList, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class SubnetworkList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::Subnetwork, decorator: Google::Apis::ComputeV1::Subnetwork::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class SubnetworksScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeV1::Subnetwork, decorator: Google::Apis::ComputeV1::Subnetwork::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeV1::SubnetworksScopedList::Warning, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class Tags
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2788,6 +2895,7 @@ module Google
property :id, as: 'id'
property :ike_version, as: 'ikeVersion'
property :kind, as: 'kind'
collection :local_traffic_selector, as: 'localTrafficSelector'
property :name, as: 'name'
property :peer_ip, as: 'peerIp'
property :region, as: 'region'

View File

@ -5287,6 +5287,51 @@ module Google
execute_or_queue_command(command, &block)
end
# Changes the machine type for a stopped instance to the machine type specified
# in the request.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance scoping this request.
# @param [Google::Apis::ComputeV1::InstancesSetMachineTypeRequest] instances_set_machine_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_instance_machine_type(project, zone, instance, instances_set_machine_type_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMachineType', options)
command.request_representation = Google::Apis::ComputeV1::InstancesSetMachineTypeRequest::Representation
command.request_object = instances_set_machine_type_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets metadata for the specified instance to the data included in the request.
# @param [String] project
# Project ID for this request.
@ -6871,6 +6916,269 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of subnetworks.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::SubnetworkAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::SubnetworkAggregatedList]
#
# @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 aggregated_subnetwork_list(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/aggregated/subnetworks', options)
command.response_representation = Google::Apis::ComputeV1::SubnetworkAggregatedList::Representation
command.response_class = Google::Apis::ComputeV1::SubnetworkAggregatedList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified subnetwork.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] subnetwork
# Name of the Subnetwork resource to delete.
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified subnetwork.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] subnetwork
# Name of the Subnetwork resource to return.
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Subnetwork] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Subnetwork]
#
# @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_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
command.response_representation = Google::Apis::ComputeV1::Subnetwork::Representation
command.response_class = Google::Apis::ComputeV1::Subnetwork
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a subnetwork in the specified project using the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_subnetwork(project, region, subnetwork_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options)
command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation
command.request_object = subnetwork_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of subnetworks available to the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::SubnetworkList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::SubnetworkList]
#
# @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_subnetworks(project, region, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks', options)
command.response_representation = Google::Apis::ComputeV1::SubnetworkList::Representation
command.response_class = Google::Apis::ComputeV1::SubnetworkList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified TargetHttpProxy resource.
# @param [String] project
# Project ID for this request.

View File

@ -37,7 +37,7 @@ module Google
# Update properties of this object
def update!(**args)
@clusters = args[:clusters] unless args[:clusters].nil?
@clusters = args[:clusters] if args.key?(:clusters)
end
end
@ -188,27 +188,27 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@description = args[:description] unless args[:description].nil?
@initial_node_count = args[:initial_node_count] unless args[:initial_node_count].nil?
@node_config = args[:node_config] unless args[:node_config].nil?
@master_auth = args[:master_auth] unless args[:master_auth].nil?
@logging_service = args[:logging_service] unless args[:logging_service].nil?
@monitoring_service = args[:monitoring_service] unless args[:monitoring_service].nil?
@network = args[:network] unless args[:network].nil?
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] unless args[:cluster_ipv4_cidr].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@zone = args[:zone] unless args[:zone].nil?
@endpoint = args[:endpoint] unless args[:endpoint].nil?
@initial_cluster_version = args[:initial_cluster_version] unless args[:initial_cluster_version].nil?
@current_master_version = args[:current_master_version] unless args[:current_master_version].nil?
@current_node_version = args[:current_node_version] unless args[:current_node_version].nil?
@create_time = args[:create_time] unless args[:create_time].nil?
@status = args[:status] unless args[:status].nil?
@status_message = args[:status_message] unless args[:status_message].nil?
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] unless args[:node_ipv4_cidr_size].nil?
@services_ipv4_cidr = args[:services_ipv4_cidr] unless args[:services_ipv4_cidr].nil?
@instance_group_urls = args[:instance_group_urls] unless args[:instance_group_urls].nil?
@name = args[:name] if args.key?(:name)
@description = args[:description] if args.key?(:description)
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
@node_config = args[:node_config] if args.key?(:node_config)
@master_auth = args[:master_auth] if args.key?(:master_auth)
@logging_service = args[:logging_service] if args.key?(:logging_service)
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
@network = args[:network] if args.key?(:network)
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
@self_link = args[:self_link] if args.key?(:self_link)
@zone = args[:zone] if args.key?(:zone)
@endpoint = args[:endpoint] if args.key?(:endpoint)
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
@create_time = args[:create_time] if args.key?(:create_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
end
end
@ -245,9 +245,9 @@ module Google
# Update properties of this object
def update!(**args)
@machine_type = args[:machine_type] unless args[:machine_type].nil?
@disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
@oauth_scopes = args[:oauth_scopes] unless args[:oauth_scopes].nil?
@machine_type = args[:machine_type] if args.key?(:machine_type)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
end
end
@ -293,11 +293,11 @@ module Google
# Update properties of this object
def update!(**args)
@username = args[:username] unless args[:username].nil?
@password = args[:password] unless args[:password].nil?
@cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil?
@client_certificate = args[:client_certificate] unless args[:client_certificate].nil?
@client_key = args[:client_key] unless args[:client_key].nil?
@username = args[:username] if args.key?(:username)
@password = args[:password] if args.key?(:password)
@cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
@client_key = args[:client_key] if args.key?(:client_key)
end
end
@ -316,7 +316,7 @@ module Google
# Update properties of this object
def update!(**args)
@cluster = args[:cluster] unless args[:cluster].nil?
@cluster = args[:cluster] if args.key?(:cluster)
end
end
@ -366,13 +366,13 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@zone = args[:zone] unless args[:zone].nil?
@operation_type = args[:operation_type] unless args[:operation_type].nil?
@status = args[:status] unless args[:status].nil?
@status_message = args[:status_message] unless args[:status_message].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@target_link = args[:target_link] unless args[:target_link].nil?
@name = args[:name] if args.key?(:name)
@zone = args[:zone] if args.key?(:zone)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@self_link = args[:self_link] if args.key?(:self_link)
@target_link = args[:target_link] if args.key?(:target_link)
end
end
@ -391,7 +391,7 @@ module Google
# Update properties of this object
def update!(**args)
@update = args[:update] unless args[:update].nil?
@update = args[:update] if args.key?(:update)
end
end
@ -411,7 +411,7 @@ module Google
# Update properties of this object
def update!(**args)
@desired_node_version = args[:desired_node_version] unless args[:desired_node_version].nil?
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
end
end
@ -430,7 +430,7 @@ module Google
# Update properties of this object
def update!(**args)
@operations = args[:operations] unless args[:operations].nil?
@operations = args[:operations] if args.key?(:operations)
end
end
@ -454,8 +454,8 @@ module Google
# Update properties of this object
def update!(**args)
@default_cluster_version = args[:default_cluster_version] unless args[:default_cluster_version].nil?
@valid_node_versions = args[:valid_node_versions] unless args[:valid_node_versions].nil?
@default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
@valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -47,9 +47,9 @@ module Google
# Update properties of this object
def update!(**args)
@custom_field_id = args[:custom_field_id] unless args[:custom_field_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@value = args[:value] unless args[:value].nil?
@custom_field_id = args[:custom_field_id] if args.key?(:custom_field_id)
@kind = args[:kind] if args.key?(:kind)
@value = args[:value] if args.key?(:value)
end
end
@ -101,13 +101,13 @@ module Google
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] unless args[:enabled].nil?
@enumitems = args[:enumitems] unless args[:enumitems].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@required_for_checkout = args[:required_for_checkout] unless args[:required_for_checkout].nil?
@type = args[:type] unless args[:type].nil?
@enabled = args[:enabled] if args.key?(:enabled)
@enumitems = args[:enumitems] if args.key?(:enumitems)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@required_for_checkout = args[:required_for_checkout] if args.key?(:required_for_checkout)
@type = args[:type] if args.key?(:type)
end
end
@ -131,8 +131,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -156,8 +156,8 @@ module Google
# Update properties of this object
def update!(**args)
@custom_field = args[:custom_field] unless args[:custom_field].nil?
@kind = args[:kind] unless args[:kind].nil?
@custom_field = args[:custom_field] if args.key?(:custom_field)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -189,9 +189,9 @@ module Google
# Update properties of this object
def update!(**args)
@active = args[:active] unless args[:active].nil?
@kind = args[:kind] unless args[:kind].nil?
@value = args[:value] unless args[:value].nil?
@active = args[:active] if args.key?(:active)
@kind = args[:kind] if args.key?(:kind)
@value = args[:value] if args.key?(:value)
end
end
@ -226,10 +226,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@job_change = args[:job_change] unless args[:job_change].nil?
@kind = args[:kind] unless args[:kind].nil?
@state = args[:state] unless args[:state].nil?
@id = args[:id] if args.key?(:id)
@job_change = args[:job_change] if args.key?(:job_change)
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
end
end
@ -258,9 +258,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@state = args[:state] unless args[:state].nil?
@timestamp = args[:timestamp] unless args[:timestamp].nil?
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
@timestamp = args[:timestamp] if args.key?(:timestamp)
end
end
@ -289,9 +289,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -351,15 +351,15 @@ module Google
# Update properties of this object
def update!(**args)
@assignee = args[:assignee] unless args[:assignee].nil?
@custom_fields = args[:custom_fields] unless args[:custom_fields].nil?
@customer_name = args[:customer_name] unless args[:customer_name].nil?
@customer_phone_number = args[:customer_phone_number] unless args[:customer_phone_number].nil?
@kind = args[:kind] unless args[:kind].nil?
@location = args[:location] unless args[:location].nil?
@note = args[:note] unless args[:note].nil?
@progress = args[:progress] unless args[:progress].nil?
@title = args[:title] unless args[:title].nil?
@assignee = args[:assignee] if args.key?(:assignee)
@custom_fields = args[:custom_fields] if args.key?(:custom_fields)
@customer_name = args[:customer_name] if args.key?(:customer_name)
@customer_phone_number = args[:customer_phone_number] if args.key?(:customer_phone_number)
@kind = args[:kind] if args.key?(:kind)
@location = args[:location] if args.key?(:location)
@note = args[:note] if args.key?(:note)
@progress = args[:progress] if args.key?(:progress)
@title = args[:title] if args.key?(:title)
end
end
@ -393,10 +393,10 @@ module Google
# Update properties of this object
def update!(**args)
@address_line = args[:address_line] unless args[:address_line].nil?
@kind = args[:kind] unless args[:kind].nil?
@lat = args[:lat] unless args[:lat].nil?
@lng = args[:lng] unless args[:lng].nil?
@address_line = args[:address_line] if args.key?(:address_line)
@kind = args[:kind] if args.key?(:kind)
@lat = args[:lat] if args.key?(:lat)
@lng = args[:lng] if args.key?(:lng)
end
end
@ -430,10 +430,10 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@token_pagination = args[:token_pagination] unless args[:token_pagination].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
end
end
@ -473,11 +473,11 @@ module Google
# Update properties of this object
def update!(**args)
@collection_time = args[:collection_time] unless args[:collection_time].nil?
@confidence_radius = args[:confidence_radius] unless args[:confidence_radius].nil?
@kind = args[:kind] unless args[:kind].nil?
@latitude = args[:latitude] unless args[:latitude].nil?
@longitude = args[:longitude] unless args[:longitude].nil?
@collection_time = args[:collection_time] if args.key?(:collection_time)
@confidence_radius = args[:confidence_radius] if args.key?(:confidence_radius)
@kind = args[:kind] if args.key?(:kind)
@latitude = args[:latitude] if args.key?(:latitude)
@longitude = args[:longitude] if args.key?(:longitude)
end
end
@ -518,11 +518,11 @@ module Google
# Update properties of this object
def update!(**args)
@all_day = args[:all_day] unless args[:all_day].nil?
@duration = args[:duration] unless args[:duration].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@kind = args[:kind] unless args[:kind].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@all_day = args[:all_day] if args.key?(:all_day)
@duration = args[:duration] if args.key?(:duration)
@end_time = args[:end_time] if args.key?(:end_time)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -552,9 +552,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -578,8 +578,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -608,9 +608,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
end
end
@ -635,8 +635,8 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -660,8 +660,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
end

View File

@ -42,8 +42,8 @@ module Google
# Update properties of this object
def update!(**args)
@facets = args[:facets] unless args[:facets].nil?
@title = args[:title] unless args[:title].nil?
@facets = args[:facets] if args.key?(:facets)
@title = args[:title] if args.key?(:title)
end
#
@ -71,9 +71,9 @@ module Google
# Update properties of this object
def update!(**args)
@anchor = args[:anchor] unless args[:anchor].nil?
@label = args[:label] unless args[:label].nil?
@label_with_op = args[:label_with_op] unless args[:label_with_op].nil?
@anchor = args[:anchor] if args.key?(:anchor)
@label = args[:label] if args.key?(:label)
@label_with_op = args[:label_with_op] if args.key?(:label_with_op)
end
end
end
@ -118,12 +118,12 @@ module Google
# Update properties of this object
def update!(**args)
@body_lines = args[:body_lines] unless args[:body_lines].nil?
@display_link = args[:display_link] unless args[:display_link].nil?
@html_title = args[:html_title] unless args[:html_title].nil?
@image = args[:image] unless args[:image].nil?
@link = args[:link] unless args[:link].nil?
@title = args[:title] unless args[:title].nil?
@body_lines = args[:body_lines] if args.key?(:body_lines)
@display_link = args[:display_link] if args.key?(:display_link)
@html_title = args[:html_title] if args.key?(:html_title)
@image = args[:image] if args.key?(:image)
@link = args[:link] if args.key?(:link)
@title = args[:title] if args.key?(:title)
end
#
@ -156,10 +156,10 @@ module Google
# Update properties of this object
def update!(**args)
@html_title = args[:html_title] unless args[:html_title].nil?
@link = args[:link] unless args[:link].nil?
@title = args[:title] unless args[:title].nil?
@url = args[:url] unless args[:url].nil?
@html_title = args[:html_title] if args.key?(:html_title)
@link = args[:link] if args.key?(:link)
@title = args[:title] if args.key?(:title)
@url = args[:url] if args.key?(:url)
end
end
@ -188,9 +188,9 @@ module Google
# Update properties of this object
def update!(**args)
@height = args[:height] unless args[:height].nil?
@source = args[:source] unless args[:source].nil?
@width = args[:width] unless args[:width].nil?
@height = args[:height] if args.key?(:height)
@source = args[:source] if args.key?(:source)
@width = args[:width] if args.key?(:width)
end
end
end
@ -390,43 +390,43 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] unless args[:count].nil?
@cr = args[:cr] unless args[:cr].nil?
@cref = args[:cref] unless args[:cref].nil?
@cx = args[:cx] unless args[:cx].nil?
@date_restrict = args[:date_restrict] unless args[:date_restrict].nil?
@disable_cn_tw_translation = args[:disable_cn_tw_translation] unless args[:disable_cn_tw_translation].nil?
@exact_terms = args[:exact_terms] unless args[:exact_terms].nil?
@exclude_terms = args[:exclude_terms] unless args[:exclude_terms].nil?
@file_type = args[:file_type] unless args[:file_type].nil?
@filter = args[:filter] unless args[:filter].nil?
@gl = args[:gl] unless args[:gl].nil?
@google_host = args[:google_host] unless args[:google_host].nil?
@high_range = args[:high_range] unless args[:high_range].nil?
@hl = args[:hl] unless args[:hl].nil?
@hq = args[:hq] unless args[:hq].nil?
@img_color_type = args[:img_color_type] unless args[:img_color_type].nil?
@img_dominant_color = args[:img_dominant_color] unless args[:img_dominant_color].nil?
@img_size = args[:img_size] unless args[:img_size].nil?
@img_type = args[:img_type] unless args[:img_type].nil?
@input_encoding = args[:input_encoding] unless args[:input_encoding].nil?
@language = args[:language] unless args[:language].nil?
@link_site = args[:link_site] unless args[:link_site].nil?
@low_range = args[:low_range] unless args[:low_range].nil?
@or_terms = args[:or_terms] unless args[:or_terms].nil?
@output_encoding = args[:output_encoding] unless args[:output_encoding].nil?
@related_site = args[:related_site] unless args[:related_site].nil?
@rights = args[:rights] unless args[:rights].nil?
@safe = args[:safe] unless args[:safe].nil?
@search_terms = args[:search_terms] unless args[:search_terms].nil?
@search_type = args[:search_type] unless args[:search_type].nil?
@site_search = args[:site_search] unless args[:site_search].nil?
@site_search_filter = args[:site_search_filter] unless args[:site_search_filter].nil?
@sort = args[:sort] unless args[:sort].nil?
@start_index = args[:start_index] unless args[:start_index].nil?
@start_page = args[:start_page] unless args[:start_page].nil?
@title = args[:title] unless args[:title].nil?
@total_results = args[:total_results] unless args[:total_results].nil?
@count = args[:count] if args.key?(:count)
@cr = args[:cr] if args.key?(:cr)
@cref = args[:cref] if args.key?(:cref)
@cx = args[:cx] if args.key?(:cx)
@date_restrict = args[:date_restrict] if args.key?(:date_restrict)
@disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)
@exact_terms = args[:exact_terms] if args.key?(:exact_terms)
@exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms)
@file_type = args[:file_type] if args.key?(:file_type)
@filter = args[:filter] if args.key?(:filter)
@gl = args[:gl] if args.key?(:gl)
@google_host = args[:google_host] if args.key?(:google_host)
@high_range = args[:high_range] if args.key?(:high_range)
@hl = args[:hl] if args.key?(:hl)
@hq = args[:hq] if args.key?(:hq)
@img_color_type = args[:img_color_type] if args.key?(:img_color_type)
@img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color)
@img_size = args[:img_size] if args.key?(:img_size)
@img_type = args[:img_type] if args.key?(:img_type)
@input_encoding = args[:input_encoding] if args.key?(:input_encoding)
@language = args[:language] if args.key?(:language)
@link_site = args[:link_site] if args.key?(:link_site)
@low_range = args[:low_range] if args.key?(:low_range)
@or_terms = args[:or_terms] if args.key?(:or_terms)
@output_encoding = args[:output_encoding] if args.key?(:output_encoding)
@related_site = args[:related_site] if args.key?(:related_site)
@rights = args[:rights] if args.key?(:rights)
@safe = args[:safe] if args.key?(:safe)
@search_terms = args[:search_terms] if args.key?(:search_terms)
@search_type = args[:search_type] if args.key?(:search_type)
@site_search = args[:site_search] if args.key?(:site_search)
@site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter)
@sort = args[:sort] if args.key?(:sort)
@start_index = args[:start_index] if args.key?(:start_index)
@start_page = args[:start_page] if args.key?(:start_page)
@title = args[:title] if args.key?(:title)
@total_results = args[:total_results] if args.key?(:total_results)
end
end
@ -515,21 +515,21 @@ module Google
# Update properties of this object
def update!(**args)
@cache_id = args[:cache_id] unless args[:cache_id].nil?
@display_link = args[:display_link] unless args[:display_link].nil?
@file_format = args[:file_format] unless args[:file_format].nil?
@formatted_url = args[:formatted_url] unless args[:formatted_url].nil?
@html_formatted_url = args[:html_formatted_url] unless args[:html_formatted_url].nil?
@html_snippet = args[:html_snippet] unless args[:html_snippet].nil?
@html_title = args[:html_title] unless args[:html_title].nil?
@image = args[:image] unless args[:image].nil?
@kind = args[:kind] unless args[:kind].nil?
@labels = args[:labels] unless args[:labels].nil?
@link = args[:link] unless args[:link].nil?
@mime = args[:mime] unless args[:mime].nil?
@pagemap = args[:pagemap] unless args[:pagemap].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
@title = args[:title] unless args[:title].nil?
@cache_id = args[:cache_id] if args.key?(:cache_id)
@display_link = args[:display_link] if args.key?(:display_link)
@file_format = args[:file_format] if args.key?(:file_format)
@formatted_url = args[:formatted_url] if args.key?(:formatted_url)
@html_formatted_url = args[:html_formatted_url] if args.key?(:html_formatted_url)
@html_snippet = args[:html_snippet] if args.key?(:html_snippet)
@html_title = args[:html_title] if args.key?(:html_title)
@image = args[:image] if args.key?(:image)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@link = args[:link] if args.key?(:link)
@mime = args[:mime] if args.key?(:mime)
@pagemap = args[:pagemap] if args.key?(:pagemap)
@snippet = args[:snippet] if args.key?(:snippet)
@title = args[:title] if args.key?(:title)
end
#
@ -577,13 +577,13 @@ module Google
# Update properties of this object
def update!(**args)
@byte_size = args[:byte_size] unless args[:byte_size].nil?
@context_link = args[:context_link] unless args[:context_link].nil?
@height = args[:height] unless args[:height].nil?
@thumbnail_height = args[:thumbnail_height] unless args[:thumbnail_height].nil?
@thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil?
@thumbnail_width = args[:thumbnail_width] unless args[:thumbnail_width].nil?
@width = args[:width] unless args[:width].nil?
@byte_size = args[:byte_size] if args.key?(:byte_size)
@context_link = args[:context_link] if args.key?(:context_link)
@height = args[:height] if args.key?(:height)
@thumbnail_height = args[:thumbnail_height] if args.key?(:thumbnail_height)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@thumbnail_width = args[:thumbnail_width] if args.key?(:thumbnail_width)
@width = args[:width] if args.key?(:width)
end
end
@ -612,9 +612,9 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@label_with_op = args[:label_with_op] unless args[:label_with_op].nil?
@name = args[:name] unless args[:name].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@label_with_op = args[:label_with_op] if args.key?(:label_with_op)
@name = args[:name] if args.key?(:name)
end
end
end
@ -669,14 +669,14 @@ module Google
# Update properties of this object
def update!(**args)
@context = args[:context] unless args[:context].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@promotions = args[:promotions] unless args[:promotions].nil?
@queries = args[:queries] unless args[:queries].nil?
@search_information = args[:search_information] unless args[:search_information].nil?
@spelling = args[:spelling] unless args[:spelling].nil?
@url = args[:url] unless args[:url].nil?
@context = args[:context] if args.key?(:context)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@promotions = args[:promotions] if args.key?(:promotions)
@queries = args[:queries] if args.key?(:queries)
@search_information = args[:search_information] if args.key?(:search_information)
@spelling = args[:spelling] if args.key?(:spelling)
@url = args[:url] if args.key?(:url)
end
#
@ -709,10 +709,10 @@ module Google
# Update properties of this object
def update!(**args)
@formatted_search_time = args[:formatted_search_time] unless args[:formatted_search_time].nil?
@formatted_total_results = args[:formatted_total_results] unless args[:formatted_total_results].nil?
@search_time = args[:search_time] unless args[:search_time].nil?
@total_results = args[:total_results] unless args[:total_results].nil?
@formatted_search_time = args[:formatted_search_time] if args.key?(:formatted_search_time)
@formatted_total_results = args[:formatted_total_results] if args.key?(:formatted_total_results)
@search_time = args[:search_time] if args.key?(:search_time)
@total_results = args[:total_results] if args.key?(:total_results)
end
end
@ -736,8 +736,8 @@ module Google
# Update properties of this object
def update!(**args)
@corrected_query = args[:corrected_query] unless args[:corrected_query].nil?
@html_corrected_query = args[:html_corrected_query] unless args[:html_corrected_query].nil?
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
@html_corrected_query = args[:html_corrected_query] if args.key?(:html_corrected_query)
end
end
@ -761,8 +761,8 @@ module Google
# Update properties of this object
def update!(**args)
@template = args[:template] unless args[:template].nil?
@type = args[:type] unless args[:type].nil?
@template = args[:template] if args.key?(:template)
@type = args[:type] if args.key?(:type)
end
end
end

View File

@ -0,0 +1,43 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/dataproc_v1/service.rb'
require 'google/apis/dataproc_v1/classes.rb'
require 'google/apis/dataproc_v1/representations.rb'
module Google
module Apis
# Google Cloud Dataproc API
#
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
#
# @see https://cloud.google.com/dataproc/
module DataprocV1
VERSION = 'V1'
REVISION = '20151209'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Administrate log data for your projects
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
# View log data for your projects
AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
# Submit log data for your projects
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
end
end
end

View File

@ -0,0 +1,175 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DataprocV1
# Media resource.
class Media
include Google::Apis::Core::Hashable
# Name of the media resource.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
end
end
# The location where output from diagnostic command can be found.
class DiagnoseClusterOutputLocation
include Google::Apis::Core::Hashable
# [Output-only] The Google Cloud Storage URI of the diagnostic output. This will
# be a plain text file with summary of collected diagnostics.
# Corresponds to the JSON property `outputUri`
# @return [String]
attr_accessor :output_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@output_uri = args[:output_uri] if args.key?(:output_uri)
end
end
# Metadata describing the operation.
class OperationMetadata
include Google::Apis::Core::Hashable
# A message containing the operation state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message containing the detailed operation state.
# Corresponds to the JSON property `innerState`
# @return [String]
attr_accessor :inner_state
# A message containing any operation metadata details.
# Corresponds to the JSON property `details`
# @return [String]
attr_accessor :details
# The time that the operation was requested.
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# The time that the operation was started by the server.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The time that the operation completed.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Name of the cluster for the operation.
# Corresponds to the JSON property `clusterName`
# @return [String]
attr_accessor :cluster_name
# Cluster UUId for the operation.
# Corresponds to the JSON property `clusterUuid`
# @return [String]
attr_accessor :cluster_uuid
# The status of the operation.
# Corresponds to the JSON property `status`
# @return [Google::Apis::DataprocV1::OperationStatus]
attr_accessor :status
# [Output-only] Previous operation status.
# Corresponds to the JSON property `statusHistory`
# @return [Array<Google::Apis::DataprocV1::OperationStatus>]
attr_accessor :status_history
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
@inner_state = args[:inner_state] if args.key?(:inner_state)
@details = args[:details] if args.key?(:details)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time)
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
@status = args[:status] if args.key?(:status)
@status_history = args[:status_history] if args.key?(:status_history)
end
end
# The status of the operation.
class OperationStatus
include Google::Apis::Core::Hashable
# A message containing the operation state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message containing the detailed operation state.
# Corresponds to the JSON property `innerState`
# @return [String]
attr_accessor :inner_state
# A message containing any operation metadata details.
# Corresponds to the JSON property `details`
# @return [String]
attr_accessor :details
# The time this state was entered.
# Corresponds to the JSON property `stateStartTime`
# @return [String]
attr_accessor :state_start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
@inner_state = args[:inner_state] if args.key?(:inner_state)
@details = args[:details] if args.key?(:details)
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
end
end
end
end
end

View File

@ -0,0 +1,84 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DataprocV1
class Media
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DiagnoseClusterOutputLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OperationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Media
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_name, as: 'resourceName'
end
end
class DiagnoseClusterOutputLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :output_uri, as: 'outputUri'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :inner_state, as: 'innerState'
property :details, as: 'details'
property :insert_time, as: 'insertTime'
property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
property :cluster_name, as: 'clusterName'
property :cluster_uuid, as: 'clusterUuid'
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
end
end
class OperationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
property :inner_state, as: 'innerState'
property :details, as: 'details'
property :state_start_time, as: 'stateStartTime'
end
end
end
end
end

View File

@ -0,0 +1,142 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DataprocV1
# Google Cloud Dataproc API
#
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
#
# @example
# require 'google/apis/dataproc_v1'
#
# Dataproc = Google::Apis::DataprocV1 # Alias the module
# service = Dataproc::DataprocService.new
#
# @see https://cloud.google.com/dataproc/
class DataprocService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://dataproc.googleapis.com/', '')
end
# Method for media upload. Upload is supported on the URI `/upload/v1/media/`+
# name``.
# @param [String] resource_name
# Name of the media that is being downloaded. See [][ByteStream.ReadRequest.
# resource_name].
# @param [Google::Apis::DataprocV1::Media] media_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 [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
# Content type of the uploaded content.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Media]
#
# @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 upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'v1/media/{+resourceName}', options)
else
command = make_upload_command(:post, 'v1/media/{+resourceName}', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.request_representation = Google::Apis::DataprocV1::Media::Representation
command.request_object = media_object
command.response_representation = Google::Apis::DataprocV1::Media::Representation
command.response_class = Google::Apis::DataprocV1::Media
command.params['resourceName'] = resource_name unless resource_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
# Method for media download. Download is supported on the URI `/v1/media/`+name`?
# alt=media`.
# @param [String] resource_name
# Name of the media that is being downloaded. See [][ByteStream.ReadRequest.
# resource_name].
# @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 [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Media]
#
# @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 download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
if download_dest.nil?
command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
else
command = make_download_command(:get, 'v1/media/{+resourceName}', options)
command.download_dest = download_dest
end
command.response_representation = Google::Apis::DataprocV1::Media::Representation
command.response_class = Google::Apis::DataprocV1::Media
command.params['resourceName'] = resource_name unless resource_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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -38,7 +38,7 @@ module Google
# Update properties of this object
def update!(**args)
@keys = args[:keys] unless args[:keys].nil?
@keys = args[:keys] if args.key?(:keys)
end
end
@ -63,8 +63,8 @@ module Google
# Update properties of this object
def update!(**args)
@header = args[:header] unless args[:header].nil?
@keys = args[:keys] unless args[:keys].nil?
@header = args[:header] if args.key?(:header)
@keys = args[:keys] if args.key?(:keys)
end
end
@ -88,7 +88,7 @@ module Google
# Update properties of this object
def update!(**args)
@isolation_level = args[:isolation_level] unless args[:isolation_level].nil?
@isolation_level = args[:isolation_level] if args.key?(:isolation_level)
end
end
@ -112,8 +112,8 @@ module Google
# Update properties of this object
def update!(**args)
@header = args[:header] unless args[:header].nil?
@transaction = args[:transaction] unless args[:transaction].nil?
@header = args[:header] if args.key?(:header)
@transaction = args[:transaction] if args.key?(:transaction)
end
end
@ -149,10 +149,10 @@ module Google
# Update properties of this object
def update!(**args)
@ignore_read_only = args[:ignore_read_only] unless args[:ignore_read_only].nil?
@mode = args[:mode] unless args[:mode].nil?
@mutation = args[:mutation] unless args[:mutation].nil?
@transaction = args[:transaction] unless args[:transaction].nil?
@ignore_read_only = args[:ignore_read_only] if args.key?(:ignore_read_only)
@mode = args[:mode] if args.key?(:mode)
@mutation = args[:mutation] if args.key?(:mutation)
@transaction = args[:transaction] if args.key?(:transaction)
end
end
@ -176,8 +176,8 @@ module Google
# Update properties of this object
def update!(**args)
@header = args[:header] unless args[:header].nil?
@mutation_result = args[:mutation_result] unless args[:mutation_result].nil?
@header = args[:header] if args.key?(:header)
@mutation_result = args[:mutation_result] if args.key?(:mutation_result)
end
end
@ -201,8 +201,8 @@ module Google
# Update properties of this object
def update!(**args)
@filters = args[:filters] unless args[:filters].nil?
@operator = args[:operator] unless args[:operator].nil?
@filters = args[:filters] if args.key?(:filters)
@operator = args[:operator] if args.key?(:operator)
end
end
@ -226,8 +226,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@properties = args[:properties] unless args[:properties].nil?
@key = args[:key] if args.key?(:key)
@properties = args[:properties] if args.key?(:properties)
end
end
@ -246,7 +246,7 @@ module Google
# Update properties of this object
def update!(**args)
@entity = args[:entity] unless args[:entity].nil?
@entity = args[:entity] if args.key?(:entity)
end
end
@ -270,8 +270,8 @@ module Google
# Update properties of this object
def update!(**args)
@composite_filter = args[:composite_filter] unless args[:composite_filter].nil?
@property_filter = args[:property_filter] unless args[:property_filter].nil?
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
@property_filter = args[:property_filter] if args.key?(:property_filter)
end
end
@ -312,10 +312,10 @@ module Google
# Update properties of this object
def update!(**args)
@allow_literal = args[:allow_literal] unless args[:allow_literal].nil?
@name_args = args[:name_args] unless args[:name_args].nil?
@number_args = args[:number_args] unless args[:number_args].nil?
@query_string = args[:query_string] unless args[:query_string].nil?
@allow_literal = args[:allow_literal] if args.key?(:allow_literal)
@name_args = args[:name_args] if args.key?(:name_args)
@number_args = args[:number_args] if args.key?(:number_args)
@query_string = args[:query_string] if args.key?(:query_string)
end
end
@ -346,9 +346,9 @@ module Google
# Update properties of this object
def update!(**args)
@cursor = args[:cursor] unless args[:cursor].nil?
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@cursor = args[:cursor] if args.key?(:cursor)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
@ -383,8 +383,8 @@ module Google
# Update properties of this object
def update!(**args)
@partition_id = args[:partition_id] unless args[:partition_id].nil?
@path = args[:path] unless args[:path].nil?
@partition_id = args[:partition_id] if args.key?(:partition_id)
@path = args[:path] if args.key?(:path)
end
end
@ -418,9 +418,9 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
@ -439,7 +439,7 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@name = args[:name] if args.key?(:name)
end
end
@ -463,8 +463,8 @@ module Google
# Update properties of this object
def update!(**args)
@keys = args[:keys] unless args[:keys].nil?
@read_options = args[:read_options] unless args[:read_options].nil?
@keys = args[:keys] if args.key?(:keys)
@read_options = args[:read_options] if args.key?(:read_options)
end
end
@ -498,10 +498,10 @@ module Google
# Update properties of this object
def update!(**args)
@deferred = args[:deferred] unless args[:deferred].nil?
@found = args[:found] unless args[:found].nil?
@header = args[:header] unless args[:header].nil?
@missing = args[:missing] unless args[:missing].nil?
@deferred = args[:deferred] if args.key?(:deferred)
@found = args[:found] if args.key?(:found)
@header = args[:header] if args.key?(:header)
@missing = args[:missing] if args.key?(:missing)
end
end
@ -551,12 +551,12 @@ module Google
# Update properties of this object
def update!(**args)
@delete = args[:delete] unless args[:delete].nil?
@force = args[:force] unless args[:force].nil?
@insert = args[:insert] unless args[:insert].nil?
@insert_auto_id = args[:insert_auto_id] unless args[:insert_auto_id].nil?
@update = args[:update] unless args[:update].nil?
@upsert = args[:upsert] unless args[:upsert].nil?
@delete = args[:delete] if args.key?(:delete)
@force = args[:force] if args.key?(:force)
@insert = args[:insert] if args.key?(:insert)
@insert_auto_id = args[:insert_auto_id] if args.key?(:insert_auto_id)
@update = args[:update] if args.key?(:update)
@upsert = args[:upsert] if args.key?(:upsert)
end
end
@ -581,8 +581,8 @@ module Google
# Update properties of this object
def update!(**args)
@index_updates = args[:index_updates] unless args[:index_updates].nil?
@insert_auto_id_keys = args[:insert_auto_id_keys] unless args[:insert_auto_id_keys].nil?
@index_updates = args[:index_updates] if args.key?(:index_updates)
@insert_auto_id_keys = args[:insert_auto_id_keys] if args.key?(:insert_auto_id_keys)
end
end
@ -608,8 +608,8 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@namespace = args[:namespace] unless args[:namespace].nil?
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@namespace = args[:namespace] if args.key?(:namespace)
end
end
@ -694,18 +694,18 @@ module Google
# Update properties of this object
def update!(**args)
@blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
@blob_value = args[:blob_value] unless args[:blob_value].nil?
@boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
@date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
@double_value = args[:double_value] unless args[:double_value].nil?
@entity_value = args[:entity_value] unless args[:entity_value].nil?
@indexed = args[:indexed] unless args[:indexed].nil?
@integer_value = args[:integer_value] unless args[:integer_value].nil?
@key_value = args[:key_value] unless args[:key_value].nil?
@list_value = args[:list_value] unless args[:list_value].nil?
@meaning = args[:meaning] unless args[:meaning].nil?
@string_value = args[:string_value] unless args[:string_value].nil?
@blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value)
@blob_value = args[:blob_value] if args.key?(:blob_value)
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
@date_time_value = args[:date_time_value] if args.key?(:date_time_value)
@double_value = args[:double_value] if args.key?(:double_value)
@entity_value = args[:entity_value] if args.key?(:entity_value)
@indexed = args[:indexed] if args.key?(:indexed)
@integer_value = args[:integer_value] if args.key?(:integer_value)
@key_value = args[:key_value] if args.key?(:key_value)
@list_value = args[:list_value] if args.key?(:list_value)
@meaning = args[:meaning] if args.key?(:meaning)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
@ -732,8 +732,8 @@ module Google
# Update properties of this object
def update!(**args)
@aggregation_function = args[:aggregation_function] unless args[:aggregation_function].nil?
@property = args[:property] unless args[:property].nil?
@aggregation_function = args[:aggregation_function] if args.key?(:aggregation_function)
@property = args[:property] if args.key?(:property)
end
end
@ -764,9 +764,9 @@ module Google
# Update properties of this object
def update!(**args)
@operator = args[:operator] unless args[:operator].nil?
@property = args[:property] unless args[:property].nil?
@value = args[:value] unless args[:value].nil?
@operator = args[:operator] if args.key?(:operator)
@property = args[:property] if args.key?(:property)
@value = args[:value] if args.key?(:value)
end
end
@ -791,8 +791,8 @@ module Google
# Update properties of this object
def update!(**args)
@direction = args[:direction] unless args[:direction].nil?
@property = args[:property] unless args[:property].nil?
@direction = args[:direction] if args.key?(:direction)
@property = args[:property] if args.key?(:property)
end
end
@ -811,7 +811,7 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@name = args[:name] if args.key?(:name)
end
end
@ -875,15 +875,15 @@ module Google
# Update properties of this object
def update!(**args)
@end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
@filter = args[:filter] unless args[:filter].nil?
@group_by = args[:group_by] unless args[:group_by].nil?
@kinds = args[:kinds] unless args[:kinds].nil?
@limit = args[:limit] unless args[:limit].nil?
@offset = args[:offset] unless args[:offset].nil?
@order = args[:order] unless args[:order].nil?
@projection = args[:projection] unless args[:projection].nil?
@start_cursor = args[:start_cursor] unless args[:start_cursor].nil?
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
@filter = args[:filter] if args.key?(:filter)
@group_by = args[:group_by] if args.key?(:group_by)
@kinds = args[:kinds] if args.key?(:kinds)
@limit = args[:limit] if args.key?(:limit)
@offset = args[:offset] if args.key?(:offset)
@order = args[:order] if args.key?(:order)
@projection = args[:projection] if args.key?(:projection)
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
end
end
@ -927,11 +927,11 @@ module Google
# Update properties of this object
def update!(**args)
@end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
@entity_result_type = args[:entity_result_type] unless args[:entity_result_type].nil?
@entity_results = args[:entity_results] unless args[:entity_results].nil?
@more_results = args[:more_results] unless args[:more_results].nil?
@skipped_results = args[:skipped_results] unless args[:skipped_results].nil?
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
@entity_results = args[:entity_results] if args.key?(:entity_results)
@more_results = args[:more_results] if args.key?(:more_results)
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
end
end
@ -958,8 +958,8 @@ module Google
# Update properties of this object
def update!(**args)
@read_consistency = args[:read_consistency] unless args[:read_consistency].nil?
@transaction = args[:transaction] unless args[:transaction].nil?
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
@transaction = args[:transaction] if args.key?(:transaction)
end
end
@ -979,7 +979,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -998,7 +998,7 @@ module Google
# Update properties of this object
def update!(**args)
@transaction = args[:transaction] unless args[:transaction].nil?
@transaction = args[:transaction] if args.key?(:transaction)
end
end
@ -1017,7 +1017,7 @@ module Google
# Update properties of this object
def update!(**args)
@header = args[:header] unless args[:header].nil?
@header = args[:header] if args.key?(:header)
end
end
@ -1053,10 +1053,10 @@ module Google
# Update properties of this object
def update!(**args)
@gql_query = args[:gql_query] unless args[:gql_query].nil?
@partition_id = args[:partition_id] unless args[:partition_id].nil?
@query = args[:query] unless args[:query].nil?
@read_options = args[:read_options] unless args[:read_options].nil?
@gql_query = args[:gql_query] if args.key?(:gql_query)
@partition_id = args[:partition_id] if args.key?(:partition_id)
@query = args[:query] if args.key?(:query)
@read_options = args[:read_options] if args.key?(:read_options)
end
end
@ -1080,8 +1080,8 @@ module Google
# Update properties of this object
def update!(**args)
@batch = args[:batch] unless args[:batch].nil?
@header = args[:header] unless args[:header].nil?
@batch = args[:batch] if args.key?(:batch)
@header = args[:header] if args.key?(:header)
end
end
@ -1167,18 +1167,18 @@ module Google
# Update properties of this object
def update!(**args)
@blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
@blob_value = args[:blob_value] unless args[:blob_value].nil?
@boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
@date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
@double_value = args[:double_value] unless args[:double_value].nil?
@entity_value = args[:entity_value] unless args[:entity_value].nil?
@indexed = args[:indexed] unless args[:indexed].nil?
@integer_value = args[:integer_value] unless args[:integer_value].nil?
@key_value = args[:key_value] unless args[:key_value].nil?
@list_value = args[:list_value] unless args[:list_value].nil?
@meaning = args[:meaning] unless args[:meaning].nil?
@string_value = args[:string_value] unless args[:string_value].nil?
@blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value)
@blob_value = args[:blob_value] if args.key?(:blob_value)
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
@date_time_value = args[:date_time_value] if args.key?(:date_time_value)
@double_value = args[:double_value] if args.key?(:double_value)
@entity_value = args[:entity_value] if args.key?(:entity_value)
@indexed = args[:indexed] if args.key?(:indexed)
@integer_value = args[:integer_value] if args.key?(:integer_value)
@key_value = args[:key_value] if args.key?(:key_value)
@list_value = args[:list_value] if args.key?(:list_value)
@meaning = args[:meaning] if args.key?(:meaning)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20160104'
REVISION = '20160125'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -37,7 +37,7 @@ module Google
# Update properties of this object
def update!(**args)
@content = args[:content] unless args[:content].nil?
@content = args[:content] if args.key?(:content)
end
end
@ -110,15 +110,15 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@manifest = args[:manifest] unless args[:manifest].nil?
@name = args[:name] unless args[:name].nil?
@operation = args[:operation] unless args[:operation].nil?
@target = args[:target] unless args[:target].nil?
@update = args[:update] unless args[:update].nil?
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@manifest = args[:manifest] if args.key?(:manifest)
@name = args[:name] if args.key?(:name)
@operation = args[:operation] if args.key?(:operation)
@target = args[:target] if args.key?(:target)
@update = args[:update] if args.key?(:update)
end
end
@ -138,7 +138,7 @@ module Google
# Update properties of this object
def update!(**args)
@manifest = args[:manifest] unless args[:manifest].nil?
@manifest = args[:manifest] if args.key?(:manifest)
end
end
@ -154,7 +154,7 @@ module Google
# this would prevent one of the requests).
# The fingerprint is initially generated by Deployment Manager and changes after
# every request to modify a deployment. To get the latest fingerprint value,
# perform a get() request to a deployment.
# perform a get() request on the deployment.
# Corresponds to the JSON property `fingerprint`
# @return [String]
attr_accessor :fingerprint
@ -165,7 +165,7 @@ module Google
# Update properties of this object
def update!(**args)
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
end
end
@ -190,8 +190,8 @@ module Google
# Update properties of this object
def update!(**args)
@deployments = args[:deployments] unless args[:deployments].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@deployments = args[:deployments] if args.key?(:deployments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -207,7 +207,7 @@ module Google
# would prevent a collision).
# The fingerprint is initially generated by Deployment Manager and changes after
# every request to modify a deployment. To get the latest fingerprint value,
# perform a get() request to a deployment.
# perform a get() request on the deployment.
# Corresponds to the JSON property `fingerprint`
# @return [String]
attr_accessor :fingerprint
@ -218,7 +218,7 @@ module Google
# Update properties of this object
def update!(**args)
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
end
end
@ -242,8 +242,8 @@ module Google
# Update properties of this object
def update!(**args)
@content = args[:content] unless args[:content].nil?
@name = args[:name] unless args[:name].nil?
@content = args[:content] if args.key?(:content)
@name = args[:name] if args.key?(:name)
end
end
@ -298,14 +298,14 @@ module Google
# Update properties of this object
def update!(**args)
@config = args[:config] unless args[:config].nil?
@expanded_config = args[:expanded_config] unless args[:expanded_config].nil?
@id = args[:id] unless args[:id].nil?
@imports = args[:imports] unless args[:imports].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@layout = args[:layout] unless args[:layout].nil?
@name = args[:name] unless args[:name].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@config = args[:config] if args.key?(:config)
@expanded_config = args[:expanded_config] if args.key?(:expanded_config)
@id = args[:id] if args.key?(:id)
@imports = args[:imports] if args.key?(:imports)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@layout = args[:layout] if args.key?(:layout)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -330,8 +330,8 @@ module Google
# Update properties of this object
def update!(**args)
@manifests = args[:manifests] unless args[:manifests].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@manifests = args[:manifests] if args.key?(:manifests)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -339,7 +339,7 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# [Output Only] A unique client ID generated by the server.
# [Output Only] Reserved for future use.
# Corresponds to the JSON property `clientOperationId`
# @return [String]
attr_accessor :client_operation_id
@ -403,7 +403,8 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] The type of operation, which can be insert, update, or delete.
# [Output Only] The type of operation, such as insert, update, or delete, and so
# on.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
@ -416,8 +417,8 @@ module Google
# @return [Fixnum]
attr_accessor :progress
# [Output Only] URL of the region where the operation resides. Only available
# when performing regional operations.
# [Output Only] The URL of the region where the operation resides. Only
# available when performing regional operations.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -451,7 +452,7 @@ module Google
# @return [String]
attr_accessor :target_id
# [Output Only] The URL of the resource that the operation is modifying.
# [Output Only] The URL of the resource that the operation modifies.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
@ -467,8 +468,8 @@ module Google
# @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
attr_accessor :warnings
# [Output Only] URL of the zone where the operation resides. Only available when
# performing per-zone operations.
# [Output Only] The URL of the zone where the operation resides. Only available
# when performing per-zone operations.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -479,29 +480,29 @@ module Google
# Update properties of this object
def update!(**args)
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@error = args[:error] unless args[:error].nil?
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@operation_type = args[:operation_type] unless args[:operation_type].nil?
@progress = args[:progress] unless args[:progress].nil?
@region = args[:region] unless args[:region].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@status = args[:status] unless args[:status].nil?
@status_message = args[:status_message] unless args[:status_message].nil?
@target_id = args[:target_id] unless args[:target_id].nil?
@target_link = args[:target_link] unless args[:target_link].nil?
@user = args[:user] unless args[:user].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@zone = args[:zone] unless args[:zone].nil?
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@end_time = args[:end_time] if args.key?(:end_time)
@error = args[:error] if args.key?(:error)
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@progress = args[:progress] if args.key?(:progress)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@target_id = args[:target_id] if args.key?(:target_id)
@target_link = args[:target_link] if args.key?(:target_link)
@user = args[:user] if args.key?(:user)
@warnings = args[:warnings] if args.key?(:warnings)
@zone = args[:zone] if args.key?(:zone)
end
# [Output Only] If errors are generated during processing of the operation, this
@ -520,7 +521,7 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@errors = args[:errors] if args.key?(:errors)
end
#
@ -549,9 +550,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@location = args[:location] unless args[:location].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
@ -583,9 +584,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -614,8 +615,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
@ -642,8 +643,8 @@ module Google
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@operations = args[:operations] unless args[:operations].nil?
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
@ -718,17 +719,17 @@ module Google
# Update properties of this object
def update!(**args)
@final_properties = args[:final_properties] unless args[:final_properties].nil?
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@manifest = args[:manifest] unless args[:manifest].nil?
@name = args[:name] unless args[:name].nil?
@properties = args[:properties] unless args[:properties].nil?
@type = args[:type] unless args[:type].nil?
@update = args[:update] unless args[:update].nil?
@update_time = args[:update_time] unless args[:update_time].nil?
@url = args[:url] unless args[:url].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@final_properties = args[:final_properties] if args.key?(:final_properties)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@manifest = args[:manifest] if args.key?(:manifest)
@name = args[:name] if args.key?(:name)
@properties = args[:properties] if args.key?(:properties)
@type = args[:type] if args.key?(:type)
@update = args[:update] if args.key?(:update)
@update_time = args[:update_time] if args.key?(:update_time)
@url = args[:url] if args.key?(:url)
@warnings = args[:warnings] if args.key?(:warnings)
end
#
@ -758,9 +759,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -789,8 +790,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
@ -846,13 +847,13 @@ module Google
# Update properties of this object
def update!(**args)
@error = args[:error] unless args[:error].nil?
@final_properties = args[:final_properties] unless args[:final_properties].nil?
@intent = args[:intent] unless args[:intent].nil?
@manifest = args[:manifest] unless args[:manifest].nil?
@properties = args[:properties] unless args[:properties].nil?
@state = args[:state] unless args[:state].nil?
@warnings = args[:warnings] unless args[:warnings].nil?
@error = args[:error] if args.key?(:error)
@final_properties = args[:final_properties] if args.key?(:final_properties)
@intent = args[:intent] if args.key?(:intent)
@manifest = args[:manifest] if args.key?(:manifest)
@properties = args[:properties] if args.key?(:properties)
@state = args[:state] if args.key?(:state)
@warnings = args[:warnings] if args.key?(:warnings)
end
# [Output Only] If errors are generated during update of the resource, this
@ -871,7 +872,7 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@errors = args[:errors] if args.key?(:errors)
end
#
@ -900,9 +901,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@location = args[:location] unless args[:location].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
@ -934,9 +935,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@data = args[:data] unless args[:data].nil?
@message = args[:message] unless args[:message].nil?
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
@ -965,8 +966,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
@ -993,8 +994,8 @@ module Google
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@resources = args[:resources] unless args[:resources].nil?
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@resources = args[:resources] if args.key?(:resources)
end
end
@ -1020,8 +1021,8 @@ module Google
# Update properties of this object
def update!(**args)
@config = args[:config] unless args[:config].nil?
@imports = args[:imports] unless args[:imports].nil?
@config = args[:config] if args.key?(:config)
@imports = args[:imports] if args.key?(:imports)
end
end
@ -1055,10 +1056,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@insert_time = args[:insert_time] unless args[:insert_time].nil?
@name = args[:name] unless args[:name].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -1082,8 +1083,8 @@ module Google
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@types = args[:types] unless args[:types].nil?
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@types = args[:types] if args.key?(:types)
end
end
end

View File

@ -232,7 +232,8 @@ module Google
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# For example, to filter for instances whose name is not equal to example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
@ -244,10 +245,10 @@ module Google
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -300,12 +301,12 @@ module Google
# @param [Boolean] preview
# If set to true, updates the deployment and creates and updates the "shell"
# resources but does not actually alter or instantiate these resources. This
# allows you to preview what your deployment looks like. You can use this intent
# to preview how an update would affect your deployment. You must provide a
# target.config with a configuration if this is set to true. After previewing a
# deployment, you can deploy your resources by making a request with the update()
# or you can cancelPreview() to remove the preview altogether. Note that the
# deployment will still exist after you cancel the preview and you must
# allows you to preview what your deployment will look like. You can use this
# intent to preview how an update would affect your deployment. You must provide
# a target.config with a configuration if this is set to true. After previewing
# a deployment, you can deploy your resources by making a request with the
# update() or you can cancelPreview() to remove the preview altogether. Note
# that the deployment will still exist after you cancel the preview and you must
# separately delete this deployment if you want to remove it.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -401,12 +402,12 @@ module Google
# @param [Boolean] preview
# If set to true, updates the deployment and creates and updates the "shell"
# resources but does not actually alter or instantiate these resources. This
# allows you to preview what your deployment looks like. You can use this intent
# to preview how an update would affect your deployment. You must provide a
# target.config with a configuration if this is set to true. After previewing a
# deployment, you can deploy your resources by making a request with the update()
# or you can cancelPreview() to remove the preview altogether. Note that the
# deployment will still exist after you cancel the preview and you must
# allows you to preview what your deployment will look like. You can use this
# intent to preview how an update would affect your deployment. You must provide
# a target.config with a configuration if this is set to true. After previewing
# a deployment, you can deploy your resources by making a request with the
# update() or you can cancelPreview() to remove the preview altogether. Note
# that the deployment will still exist after you cancel the preview and you must
# separately delete this deployment if you want to remove it.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -503,7 +504,8 @@ module Google
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# For example, to filter for instances whose name is not equal to example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
@ -515,10 +517,10 @@ module Google
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -610,7 +612,8 @@ module Google
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# For example, to filter for instances whose name is not equal to example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
@ -622,10 +625,10 @@ module Google
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -721,7 +724,8 @@ module Google
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# For example, to filter for instances whose name is not equal to example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
@ -733,10 +737,10 @@ module Google
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -790,7 +794,8 @@ module Google
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, filter=name ne example-instance.
# For example, to filter for instances whose name is not equal to example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
@ -802,10 +807,10 @@ module Google
# treated as AND expressions meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that Compute Engine should return. If
# the number of available results is larger than maxResults, Compute Engine
# returns a nextPageToken that can be used to get the next page of results in
# subsequent list requests.
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.

File diff suppressed because it is too large Load Diff

View File

@ -47,9 +47,9 @@ module Google
# Update properties of this object
def update!(**args)
@discovery_version = args[:discovery_version] unless args[:discovery_version].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@discovery_version = args[:discovery_version] if args.key?(:discovery_version)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
#
@ -123,18 +123,18 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@discovery_link = args[:discovery_link] unless args[:discovery_link].nil?
@discovery_rest_url = args[:discovery_rest_url] unless args[:discovery_rest_url].nil?
@documentation_link = args[:documentation_link] unless args[:documentation_link].nil?
@icons = args[:icons] unless args[:icons].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@labels = args[:labels] unless args[:labels].nil?
@name = args[:name] unless args[:name].nil?
@preferred = args[:preferred] unless args[:preferred].nil?
@title = args[:title] unless args[:title].nil?
@version = args[:version] unless args[:version].nil?
@description = args[:description] if args.key?(:description)
@discovery_link = args[:discovery_link] if args.key?(:discovery_link)
@discovery_rest_url = args[:discovery_rest_url] if args.key?(:discovery_rest_url)
@documentation_link = args[:documentation_link] if args.key?(:documentation_link)
@icons = args[:icons] if args.key?(:icons)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@preferred = args[:preferred] if args.key?(:preferred)
@title = args[:title] if args.key?(:title)
@version = args[:version] if args.key?(:version)
end
# Links to 16x16 and 32x32 icons representing the API.
@ -157,8 +157,8 @@ module Google
# Update properties of this object
def update!(**args)
@x16 = args[:x16] unless args[:x16].nil?
@x32 = args[:x32] unless args[:x32].nil?
@x16 = args[:x16] if args.key?(:x16)
@x32 = args[:x32] if args.key?(:x32)
end
end
end
@ -290,26 +290,26 @@ module Google
# Update properties of this object
def update!(**args)
@_ref = args[:_ref] unless args[:_ref].nil?
@additional_properties = args[:additional_properties] unless args[:additional_properties].nil?
@annotations = args[:annotations] unless args[:annotations].nil?
@default = args[:default] unless args[:default].nil?
@description = args[:description] unless args[:description].nil?
@enum = args[:enum] unless args[:enum].nil?
@enum_descriptions = args[:enum_descriptions] unless args[:enum_descriptions].nil?
@format = args[:format] unless args[:format].nil?
@id = args[:id] unless args[:id].nil?
@items = args[:items] unless args[:items].nil?
@location = args[:location] unless args[:location].nil?
@maximum = args[:maximum] unless args[:maximum].nil?
@minimum = args[:minimum] unless args[:minimum].nil?
@pattern = args[:pattern] unless args[:pattern].nil?
@properties = args[:properties] unless args[:properties].nil?
@read_only = args[:read_only] unless args[:read_only].nil?
@repeated = args[:repeated] unless args[:repeated].nil?
@required = args[:required] unless args[:required].nil?
@type = args[:type] unless args[:type].nil?
@variant = args[:variant] unless args[:variant].nil?
@_ref = args[:_ref] if args.key?(:_ref)
@additional_properties = args[:additional_properties] if args.key?(:additional_properties)
@annotations = args[:annotations] if args.key?(:annotations)
@default = args[:default] if args.key?(:default)
@description = args[:description] if args.key?(:description)
@enum = args[:enum] if args.key?(:enum)
@enum_descriptions = args[:enum_descriptions] if args.key?(:enum_descriptions)
@format = args[:format] if args.key?(:format)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@location = args[:location] if args.key?(:location)
@maximum = args[:maximum] if args.key?(:maximum)
@minimum = args[:minimum] if args.key?(:minimum)
@pattern = args[:pattern] if args.key?(:pattern)
@properties = args[:properties] if args.key?(:properties)
@read_only = args[:read_only] if args.key?(:read_only)
@repeated = args[:repeated] if args.key?(:repeated)
@required = args[:required] if args.key?(:required)
@type = args[:type] if args.key?(:type)
@variant = args[:variant] if args.key?(:variant)
end
# Additional information about this property.
@ -327,7 +327,7 @@ module Google
# Update properties of this object
def update!(**args)
@required = args[:required] unless args[:required].nil?
@required = args[:required] if args.key?(:required)
end
end
@ -353,8 +353,8 @@ module Google
# Update properties of this object
def update!(**args)
@discriminant = args[:discriminant] unless args[:discriminant].nil?
@map = args[:map] unless args[:map].nil?
@discriminant = args[:discriminant] if args.key?(:discriminant)
@map = args[:map] if args.key?(:map)
end
#
@ -377,8 +377,8 @@ module Google
# Update properties of this object
def update!(**args)
@_ref = args[:_ref] unless args[:_ref].nil?
@type_value = args[:type_value] unless args[:type_value].nil?
@_ref = args[:_ref] if args.key?(:_ref)
@type_value = args[:type_value] if args.key?(:type_value)
end
end
end
@ -549,36 +549,36 @@ module Google
# Update properties of this object
def update!(**args)
@auth = args[:auth] unless args[:auth].nil?
@base_path = args[:base_path] unless args[:base_path].nil?
@base_url = args[:base_url] unless args[:base_url].nil?
@batch_path = args[:batch_path] unless args[:batch_path].nil?
@canonical_name = args[:canonical_name] unless args[:canonical_name].nil?
@description = args[:description] unless args[:description].nil?
@discovery_version = args[:discovery_version] unless args[:discovery_version].nil?
@documentation_link = args[:documentation_link] unless args[:documentation_link].nil?
@etag = args[:etag] unless args[:etag].nil?
@exponential_backoff_default = args[:exponential_backoff_default] unless args[:exponential_backoff_default].nil?
@features = args[:features] unless args[:features].nil?
@icons = args[:icons] unless args[:icons].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@labels = args[:labels] unless args[:labels].nil?
@api_methods = args[:api_methods] unless args[:api_methods].nil?
@name = args[:name] unless args[:name].nil?
@owner_domain = args[:owner_domain] unless args[:owner_domain].nil?
@owner_name = args[:owner_name] unless args[:owner_name].nil?
@package_path = args[:package_path] unless args[:package_path].nil?
@parameters = args[:parameters] unless args[:parameters].nil?
@protocol = args[:protocol] unless args[:protocol].nil?
@resources = args[:resources] unless args[:resources].nil?
@revision = args[:revision] unless args[:revision].nil?
@root_url = args[:root_url] unless args[:root_url].nil?
@schemas = args[:schemas] unless args[:schemas].nil?
@service_path = args[:service_path] unless args[:service_path].nil?
@title = args[:title] unless args[:title].nil?
@version = args[:version] unless args[:version].nil?
@version_module = args[:version_module] unless args[:version_module].nil?
@auth = args[:auth] if args.key?(:auth)
@base_path = args[:base_path] if args.key?(:base_path)
@base_url = args[:base_url] if args.key?(:base_url)
@batch_path = args[:batch_path] if args.key?(:batch_path)
@canonical_name = args[:canonical_name] if args.key?(:canonical_name)
@description = args[:description] if args.key?(:description)
@discovery_version = args[:discovery_version] if args.key?(:discovery_version)
@documentation_link = args[:documentation_link] if args.key?(:documentation_link)
@etag = args[:etag] if args.key?(:etag)
@exponential_backoff_default = args[:exponential_backoff_default] if args.key?(:exponential_backoff_default)
@features = args[:features] if args.key?(:features)
@icons = args[:icons] if args.key?(:icons)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@api_methods = args[:api_methods] if args.key?(:api_methods)
@name = args[:name] if args.key?(:name)
@owner_domain = args[:owner_domain] if args.key?(:owner_domain)
@owner_name = args[:owner_name] if args.key?(:owner_name)
@package_path = args[:package_path] if args.key?(:package_path)
@parameters = args[:parameters] if args.key?(:parameters)
@protocol = args[:protocol] if args.key?(:protocol)
@resources = args[:resources] if args.key?(:resources)
@revision = args[:revision] if args.key?(:revision)
@root_url = args[:root_url] if args.key?(:root_url)
@schemas = args[:schemas] if args.key?(:schemas)
@service_path = args[:service_path] if args.key?(:service_path)
@title = args[:title] if args.key?(:title)
@version = args[:version] if args.key?(:version)
@version_module = args[:version_module] if args.key?(:version_module)
end
# Authentication information.
@ -596,7 +596,7 @@ module Google
# Update properties of this object
def update!(**args)
@oauth2 = args[:oauth2] unless args[:oauth2].nil?
@oauth2 = args[:oauth2] if args.key?(:oauth2)
end
# OAuth 2.0 authentication information.
@ -614,7 +614,7 @@ module Google
# Update properties of this object
def update!(**args)
@scopes = args[:scopes] unless args[:scopes].nil?
@scopes = args[:scopes] if args.key?(:scopes)
end
# The scope value.
@ -632,7 +632,7 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@description = args[:description] if args.key?(:description)
end
end
end
@ -658,8 +658,8 @@ module Google
# Update properties of this object
def update!(**args)
@x16 = args[:x16] unless args[:x16].nil?
@x32 = args[:x32] unless args[:x32].nil?
@x16 = args[:x16] if args.key?(:x16)
@x32 = args[:x32] if args.key?(:x32)
end
end
end
@ -760,21 +760,21 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@etag_required = args[:etag_required] unless args[:etag_required].nil?
@http_method = args[:http_method] unless args[:http_method].nil?
@id = args[:id] unless args[:id].nil?
@media_upload = args[:media_upload] unless args[:media_upload].nil?
@parameter_order = args[:parameter_order] unless args[:parameter_order].nil?
@parameters = args[:parameters] unless args[:parameters].nil?
@path = args[:path] unless args[:path].nil?
@request = args[:request] unless args[:request].nil?
@response = args[:response] unless args[:response].nil?
@scopes = args[:scopes] unless args[:scopes].nil?
@supports_media_download = args[:supports_media_download] unless args[:supports_media_download].nil?
@supports_media_upload = args[:supports_media_upload] unless args[:supports_media_upload].nil?
@supports_subscription = args[:supports_subscription] unless args[:supports_subscription].nil?
@use_media_download_service = args[:use_media_download_service] unless args[:use_media_download_service].nil?
@description = args[:description] if args.key?(:description)
@etag_required = args[:etag_required] if args.key?(:etag_required)
@http_method = args[:http_method] if args.key?(:http_method)
@id = args[:id] if args.key?(:id)
@media_upload = args[:media_upload] if args.key?(:media_upload)
@parameter_order = args[:parameter_order] if args.key?(:parameter_order)
@parameters = args[:parameters] if args.key?(:parameters)
@path = args[:path] if args.key?(:path)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
@scopes = args[:scopes] if args.key?(:scopes)
@supports_media_download = args[:supports_media_download] if args.key?(:supports_media_download)
@supports_media_upload = args[:supports_media_upload] if args.key?(:supports_media_upload)
@supports_subscription = args[:supports_subscription] if args.key?(:supports_subscription)
@use_media_download_service = args[:use_media_download_service] if args.key?(:use_media_download_service)
end
# Media upload parameters.
@ -802,9 +802,9 @@ module Google
# Update properties of this object
def update!(**args)
@accept = args[:accept] unless args[:accept].nil?
@max_size = args[:max_size] unless args[:max_size].nil?
@protocols = args[:protocols] unless args[:protocols].nil?
@accept = args[:accept] if args.key?(:accept)
@max_size = args[:max_size] if args.key?(:max_size)
@protocols = args[:protocols] if args.key?(:protocols)
end
# Supported upload protocols.
@ -827,8 +827,8 @@ module Google
# Update properties of this object
def update!(**args)
@resumable = args[:resumable] unless args[:resumable].nil?
@simple = args[:simple] unless args[:simple].nil?
@resumable = args[:resumable] if args.key?(:resumable)
@simple = args[:simple] if args.key?(:simple)
end
# Supports the Resumable Media Upload protocol.
@ -853,8 +853,8 @@ module Google
# Update properties of this object
def update!(**args)
@multipart = args[:multipart] unless args[:multipart].nil?
@path = args[:path] unless args[:path].nil?
@multipart = args[:multipart] if args.key?(:multipart)
@path = args[:path] if args.key?(:path)
end
end
@ -880,8 +880,8 @@ module Google
# Update properties of this object
def update!(**args)
@multipart = args[:multipart] unless args[:multipart].nil?
@path = args[:path] unless args[:path].nil?
@multipart = args[:multipart] if args.key?(:multipart)
@path = args[:path] if args.key?(:path)
end
end
end
@ -907,8 +907,8 @@ module Google
# Update properties of this object
def update!(**args)
@_ref = args[:_ref] unless args[:_ref].nil?
@parameter_name = args[:parameter_name] unless args[:parameter_name].nil?
@_ref = args[:_ref] if args.key?(:_ref)
@parameter_name = args[:parameter_name] if args.key?(:parameter_name)
end
end
@ -927,7 +927,7 @@ module Google
# Update properties of this object
def update!(**args)
@_ref = args[:_ref] unless args[:_ref].nil?
@_ref = args[:_ref] if args.key?(:_ref)
end
end
end
@ -952,8 +952,8 @@ module Google
# Update properties of this object
def update!(**args)
@api_methods = args[:api_methods] unless args[:api_methods].nil?
@resources = args[:resources] unless args[:resources].nil?
@api_methods = args[:api_methods] if args.key?(:api_methods)
@resources = args[:resources] if args.key?(:resources)
end
end
end

View File

@ -63,12 +63,12 @@ module Google
# Update properties of this object
def update!(**args)
@additions = args[:additions] unless args[:additions].nil?
@deletions = args[:deletions] unless args[:deletions].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@start_time = args[:start_time] unless args[:start_time].nil?
@status = args[:status] unless args[:status].nil?
@additions = args[:additions] if args.key?(:additions)
@deletions = args[:deletions] if args.key?(:deletions)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
end
end
@ -105,9 +105,9 @@ module Google
# Update properties of this object
def update!(**args)
@changes = args[:changes] unless args[:changes].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@changes = args[:changes] if args.key?(:changes)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -171,14 +171,14 @@ module Google
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] unless args[:creation_time].nil?
@description = args[:description] unless args[:description].nil?
@dns_name = args[:dns_name] unless args[:dns_name].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@name_server_set = args[:name_server_set] unless args[:name_server_set].nil?
@name_servers = args[:name_servers] unless args[:name_servers].nil?
@creation_time = args[:creation_time] if args.key?(:creation_time)
@description = args[:description] if args.key?(:description)
@dns_name = args[:dns_name] if args.key?(:dns_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@name_server_set = args[:name_server_set] if args.key?(:name_server_set)
@name_servers = args[:name_servers] if args.key?(:name_servers)
end
end
@ -215,9 +215,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@managed_zones = args[:managed_zones] unless args[:managed_zones].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -255,10 +255,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@number = args[:number] unless args[:number].nil?
@quota = args[:quota] unless args[:quota].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@number = args[:number] if args.key?(:number)
@quota = args[:quota] if args.key?(:quota)
end
end
@ -308,13 +308,13 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@managed_zones = args[:managed_zones] unless args[:managed_zones].nil?
@resource_records_per_rrset = args[:resource_records_per_rrset] unless args[:resource_records_per_rrset].nil?
@rrset_additions_per_change = args[:rrset_additions_per_change] unless args[:rrset_additions_per_change].nil?
@rrset_deletions_per_change = args[:rrset_deletions_per_change] unless args[:rrset_deletions_per_change].nil?
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] unless args[:rrsets_per_managed_zone].nil?
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] unless args[:total_rrdata_size_per_change].nil?
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
@rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
end
end
@ -355,11 +355,11 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@rrdatas = args[:rrdatas] unless args[:rrdatas].nil?
@ttl = args[:ttl] unless args[:ttl].nil?
@type = args[:type] unless args[:type].nil?
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
@ttl = args[:ttl] if args.key?(:ttl)
@type = args[:type] if args.key?(:type)
end
end
@ -396,9 +396,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@rrsets = args[:rrsets] unless args[:rrsets].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@rrsets = args[:rrsets] if args.key?(:rrsets)
end
end
end

View File

@ -54,10 +54,10 @@ module Google
# Update properties of this object
def update!(**args)
@file_spec = args[:file_spec] unless args[:file_spec].nil?
@filter_ids = args[:filter_ids] unless args[:filter_ids].nil?
@filter_type = args[:filter_type] unless args[:filter_type].nil?
@format = args[:format] unless args[:format].nil?
@file_spec = args[:file_spec] if args.key?(:file_spec)
@filter_ids = args[:filter_ids] if args.key?(:filter_ids)
@filter_type = args[:filter_type] if args.key?(:filter_type)
@format = args[:format] if args.key?(:format)
end
end
@ -77,7 +77,7 @@ module Google
# Update properties of this object
def update!(**args)
@line_items = args[:line_items] unless args[:line_items].nil?
@line_items = args[:line_items] if args.key?(:line_items)
end
end
@ -101,8 +101,8 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] unless args[:type].nil?
@value = args[:value] unless args[:value].nil?
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
end
end
@ -127,8 +127,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@queries = args[:queries] unless args[:queries].nil?
@kind = args[:kind] if args.key?(:kind)
@queries = args[:queries] if args.key?(:queries)
end
end
@ -153,8 +153,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@reports = args[:reports] unless args[:reports].nil?
@kind = args[:kind] if args.key?(:kind)
@reports = args[:reports] if args.key?(:reports)
end
end
@ -193,11 +193,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@message = args[:message] unless args[:message].nil?
@source = args[:source] unless args[:source].nil?
@timestamp = args[:timestamp] unless args[:timestamp].nil?
@username = args[:username] unless args[:username].nil?
@id = args[:id] if args.key?(:id)
@message = args[:message] if args.key?(:message)
@source = args[:source] if args.key?(:source)
@timestamp = args[:timestamp] if args.key?(:timestamp)
@username = args[:username] if args.key?(:username)
end
end
@ -236,11 +236,11 @@ module Google
# Update properties of this object
def update!(**args)
@action = args[:action] unless args[:action].nil?
@href = args[:href] unless args[:href].nil?
@id = args[:id] unless args[:id].nil?
@notes = args[:notes] unless args[:notes].nil?
@token = args[:token] unless args[:token].nil?
@action = args[:action] if args.key?(:action)
@href = args[:href] if args.key?(:href)
@id = args[:id] if args.key?(:id)
@notes = args[:notes] if args.key?(:notes)
@token = args[:token] if args.key?(:token)
end
end
@ -280,11 +280,11 @@ module Google
# Update properties of this object
def update!(**args)
@filters = args[:filters] unless args[:filters].nil?
@group_bys = args[:group_bys] unless args[:group_bys].nil?
@include_invite_data = args[:include_invite_data] unless args[:include_invite_data].nil?
@metrics = args[:metrics] unless args[:metrics].nil?
@type = args[:type] unless args[:type].nil?
@filters = args[:filters] if args.key?(:filters)
@group_bys = args[:group_bys] if args.key?(:group_bys)
@include_invite_data = args[:include_invite_data] if args.key?(:include_invite_data)
@metrics = args[:metrics] if args.key?(:metrics)
@type = args[:type] if args.key?(:type)
end
end
@ -343,14 +343,14 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@metadata = args[:metadata] unless args[:metadata].nil?
@params = args[:params] unless args[:params].nil?
@query_id = args[:query_id] unless args[:query_id].nil?
@report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil?
@report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil?
@schedule = args[:schedule] unless args[:schedule].nil?
@timezone_code = args[:timezone_code] unless args[:timezone_code].nil?
@kind = args[:kind] if args.key?(:kind)
@metadata = args[:metadata] if args.key?(:metadata)
@params = args[:params] if args.key?(:params)
@query_id = args[:query_id] if args.key?(:query_id)
@report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
@report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
@schedule = args[:schedule] if args.key?(:schedule)
@timezone_code = args[:timezone_code] if args.key?(:timezone_code)
end
end
@ -427,17 +427,17 @@ module Google
# Update properties of this object
def update!(**args)
@data_range = args[:data_range] unless args[:data_range].nil?
@format = args[:format] unless args[:format].nil?
@google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] unless args[:google_cloud_storage_path_for_latest_report].nil?
@google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] unless args[:google_drive_path_for_latest_report].nil?
@latest_report_run_time_ms = args[:latest_report_run_time_ms] unless args[:latest_report_run_time_ms].nil?
@locale = args[:locale] unless args[:locale].nil?
@report_count = args[:report_count] unless args[:report_count].nil?
@running = args[:running] unless args[:running].nil?
@send_notification = args[:send_notification] unless args[:send_notification].nil?
@share_email_address = args[:share_email_address] unless args[:share_email_address].nil?
@title = args[:title] unless args[:title].nil?
@data_range = args[:data_range] if args.key?(:data_range)
@format = args[:format] if args.key?(:format)
@google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] if args.key?(:google_cloud_storage_path_for_latest_report)
@google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] if args.key?(:google_drive_path_for_latest_report)
@latest_report_run_time_ms = args[:latest_report_run_time_ms] if args.key?(:latest_report_run_time_ms)
@locale = args[:locale] if args.key?(:locale)
@report_count = args[:report_count] if args.key?(:report_count)
@running = args[:running] if args.key?(:running)
@send_notification = args[:send_notification] if args.key?(:send_notification)
@share_email_address = args[:share_email_address] if args.key?(:share_email_address)
@title = args[:title] if args.key?(:title)
end
end
@ -473,10 +473,10 @@ module Google
# Update properties of this object
def update!(**args)
@end_time_ms = args[:end_time_ms] unless args[:end_time_ms].nil?
@frequency = args[:frequency] unless args[:frequency].nil?
@next_run_minute_of_day = args[:next_run_minute_of_day] unless args[:next_run_minute_of_day].nil?
@next_run_timezone_code = args[:next_run_timezone_code] unless args[:next_run_timezone_code].nil?
@end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
@frequency = args[:frequency] if args.key?(:frequency)
@next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day)
@next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code)
end
end
@ -505,9 +505,9 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@metadata = args[:metadata] unless args[:metadata].nil?
@params = args[:params] unless args[:params].nil?
@key = args[:key] if args.key?(:key)
@metadata = args[:metadata] if args.key?(:metadata)
@params = args[:params] if args.key?(:params)
end
end
@ -526,7 +526,7 @@ module Google
# Update properties of this object
def update!(**args)
@error_code = args[:error_code] unless args[:error_code].nil?
@error_code = args[:error_code] if args.key?(:error_code)
end
end
@ -550,8 +550,8 @@ module Google
# Update properties of this object
def update!(**args)
@query_id = args[:query_id] unless args[:query_id].nil?
@report_id = args[:report_id] unless args[:report_id].nil?
@query_id = args[:query_id] if args.key?(:query_id)
@report_id = args[:report_id] if args.key?(:report_id)
end
end
@ -585,10 +585,10 @@ module Google
# Update properties of this object
def update!(**args)
@google_cloud_storage_path = args[:google_cloud_storage_path] unless args[:google_cloud_storage_path].nil?
@report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil?
@report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil?
@status = args[:status] unless args[:status].nil?
@google_cloud_storage_path = args[:google_cloud_storage_path] if args.key?(:google_cloud_storage_path)
@report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
@report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
@status = args[:status] if args.key?(:status)
end
end
@ -622,10 +622,10 @@ module Google
# Update properties of this object
def update!(**args)
@failure = args[:failure] unless args[:failure].nil?
@finish_time_ms = args[:finish_time_ms] unless args[:finish_time_ms].nil?
@format = args[:format] unless args[:format].nil?
@state = args[:state] unless args[:state].nil?
@failure = args[:failure] if args.key?(:failure)
@finish_time_ms = args[:finish_time_ms] if args.key?(:finish_time_ms)
@format = args[:format] if args.key?(:format)
@state = args[:state] if args.key?(:state)
end
end
@ -671,12 +671,12 @@ module Google
# Update properties of this object
def update!(**args)
@changed = args[:changed] unless args[:changed].nil?
@entity_id = args[:entity_id] unless args[:entity_id].nil?
@entity_name = args[:entity_name] unless args[:entity_name].nil?
@errors = args[:errors] unless args[:errors].nil?
@persisted = args[:persisted] unless args[:persisted].nil?
@row_number = args[:row_number] unless args[:row_number].nil?
@changed = args[:changed] if args.key?(:changed)
@entity_id = args[:entity_id] if args.key?(:entity_id)
@entity_name = args[:entity_name] if args.key?(:entity_name)
@errors = args[:errors] if args.key?(:errors)
@persisted = args[:persisted] if args.key?(:persisted)
@row_number = args[:row_number] if args.key?(:row_number)
end
end
@ -714,10 +714,10 @@ module Google
# Update properties of this object
def update!(**args)
@data_range = args[:data_range] unless args[:data_range].nil?
@report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil?
@report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil?
@timezone_code = args[:timezone_code] unless args[:timezone_code].nil?
@data_range = args[:data_range] if args.key?(:data_range)
@report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
@report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
@timezone_code = args[:timezone_code] if args.key?(:timezone_code)
end
end
@ -748,9 +748,9 @@ module Google
# Update properties of this object
def update!(**args)
@dry_run = args[:dry_run] unless args[:dry_run].nil?
@format = args[:format] unless args[:format].nil?
@line_items = args[:line_items] unless args[:line_items].nil?
@dry_run = args[:dry_run] if args.key?(:dry_run)
@format = args[:format] if args.key?(:format)
@line_items = args[:line_items] if args.key?(:line_items)
end
end
@ -769,7 +769,7 @@ module Google
# Update properties of this object
def update!(**args)
@upload_status = args[:upload_status] unless args[:upload_status].nil?
@upload_status = args[:upload_status] if args.key?(:upload_status)
end
end
@ -793,8 +793,8 @@ module Google
# Update properties of this object
def update!(**args)
@errors = args[:errors] unless args[:errors].nil?
@row_status = args[:row_status] unless args[:row_status].nil?
@errors = args[:errors] if args.key?(:errors)
@row_status = args[:row_status] if args.key?(:row_status)
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20160113'
REVISION = '20160120'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -65,12 +65,12 @@ module Google
# Update properties of this object
def update!(**args)
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@agency_id = args[:agency_id] unless args[:agency_id].nil?
@availability_timestamp = args[:availability_timestamp] unless args[:availability_timestamp].nil?
@segmentation_id = args[:segmentation_id] unless args[:segmentation_id].nil?
@segmentation_name = args[:segmentation_name] unless args[:segmentation_name].nil?
@segmentation_type = args[:segmentation_type] unless args[:segmentation_type].nil?
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@agency_id = args[:agency_id] if args.key?(:agency_id)
@availability_timestamp = args[:availability_timestamp] if args.key?(:availability_timestamp)
@segmentation_id = args[:segmentation_id] if args.key?(:segmentation_id)
@segmentation_name = args[:segmentation_name] if args.key?(:segmentation_name)
@segmentation_type = args[:segmentation_type] if args.key?(:segmentation_type)
end
end
@ -269,39 +269,39 @@ module Google
# Update properties of this object
def update!(**args)
@ad_group_id = args[:ad_group_id] unless args[:ad_group_id].nil?
@ad_id = args[:ad_id] unless args[:ad_id].nil?
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@agency_id = args[:agency_id] unless args[:agency_id].nil?
@attribution_model = args[:attribution_model] unless args[:attribution_model].nil?
@campaign_id = args[:campaign_id] unless args[:campaign_id].nil?
@channel = args[:channel] unless args[:channel].nil?
@click_id = args[:click_id] unless args[:click_id].nil?
@conversion_id = args[:conversion_id] unless args[:conversion_id].nil?
@conversion_modified_timestamp = args[:conversion_modified_timestamp] unless args[:conversion_modified_timestamp].nil?
@conversion_timestamp = args[:conversion_timestamp] unless args[:conversion_timestamp].nil?
@count_millis = args[:count_millis] unless args[:count_millis].nil?
@criterion_id = args[:criterion_id] unless args[:criterion_id].nil?
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@custom_dimension = args[:custom_dimension] unless args[:custom_dimension].nil?
@custom_metric = args[:custom_metric] unless args[:custom_metric].nil?
@device_type = args[:device_type] unless args[:device_type].nil?
@ds_conversion_id = args[:ds_conversion_id] unless args[:ds_conversion_id].nil?
@engine_account_id = args[:engine_account_id] unless args[:engine_account_id].nil?
@floodlight_order_id = args[:floodlight_order_id] unless args[:floodlight_order_id].nil?
@inventory_account_id = args[:inventory_account_id] unless args[:inventory_account_id].nil?
@product_country = args[:product_country] unless args[:product_country].nil?
@product_group_id = args[:product_group_id] unless args[:product_group_id].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@product_language = args[:product_language] unless args[:product_language].nil?
@quantity_millis = args[:quantity_millis] unless args[:quantity_millis].nil?
@revenue_micros = args[:revenue_micros] unless args[:revenue_micros].nil?
@segmentation_id = args[:segmentation_id] unless args[:segmentation_id].nil?
@segmentation_name = args[:segmentation_name] unless args[:segmentation_name].nil?
@segmentation_type = args[:segmentation_type] unless args[:segmentation_type].nil?
@state = args[:state] unless args[:state].nil?
@store_id = args[:store_id] unless args[:store_id].nil?
@type = args[:type] unless args[:type].nil?
@ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id)
@ad_id = args[:ad_id] if args.key?(:ad_id)
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@agency_id = args[:agency_id] if args.key?(:agency_id)
@attribution_model = args[:attribution_model] if args.key?(:attribution_model)
@campaign_id = args[:campaign_id] if args.key?(:campaign_id)
@channel = args[:channel] if args.key?(:channel)
@click_id = args[:click_id] if args.key?(:click_id)
@conversion_id = args[:conversion_id] if args.key?(:conversion_id)
@conversion_modified_timestamp = args[:conversion_modified_timestamp] if args.key?(:conversion_modified_timestamp)
@conversion_timestamp = args[:conversion_timestamp] if args.key?(:conversion_timestamp)
@count_millis = args[:count_millis] if args.key?(:count_millis)
@criterion_id = args[:criterion_id] if args.key?(:criterion_id)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@custom_dimension = args[:custom_dimension] if args.key?(:custom_dimension)
@custom_metric = args[:custom_metric] if args.key?(:custom_metric)
@device_type = args[:device_type] if args.key?(:device_type)
@ds_conversion_id = args[:ds_conversion_id] if args.key?(:ds_conversion_id)
@engine_account_id = args[:engine_account_id] if args.key?(:engine_account_id)
@floodlight_order_id = args[:floodlight_order_id] if args.key?(:floodlight_order_id)
@inventory_account_id = args[:inventory_account_id] if args.key?(:inventory_account_id)
@product_country = args[:product_country] if args.key?(:product_country)
@product_group_id = args[:product_group_id] if args.key?(:product_group_id)
@product_id = args[:product_id] if args.key?(:product_id)
@product_language = args[:product_language] if args.key?(:product_language)
@quantity_millis = args[:quantity_millis] if args.key?(:quantity_millis)
@revenue_micros = args[:revenue_micros] if args.key?(:revenue_micros)
@segmentation_id = args[:segmentation_id] if args.key?(:segmentation_id)
@segmentation_name = args[:segmentation_name] if args.key?(:segmentation_name)
@segmentation_type = args[:segmentation_type] if args.key?(:segmentation_type)
@state = args[:state] if args.key?(:state)
@store_id = args[:store_id] if args.key?(:store_id)
@type = args[:type] if args.key?(:type)
end
end
@ -326,8 +326,8 @@ module Google
# Update properties of this object
def update!(**args)
@conversion = args[:conversion] unless args[:conversion].nil?
@kind = args[:kind] unless args[:kind].nil?
@conversion = args[:conversion] if args.key?(:conversion)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -351,8 +351,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
@ -376,8 +376,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
@ -446,15 +446,15 @@ module Google
# Update properties of this object
def update!(**args)
@files = args[:files] unless args[:files].nil?
@id = args[:id] unless args[:id].nil?
@is_report_ready = args[:is_report_ready] unless args[:is_report_ready].nil?
@kind = args[:kind] unless args[:kind].nil?
@request = args[:request] unless args[:request].nil?
@row_count = args[:row_count] unless args[:row_count].nil?
@rows = args[:rows] unless args[:rows].nil?
@statistics_currency_code = args[:statistics_currency_code] unless args[:statistics_currency_code].nil?
@statistics_time_zone = args[:statistics_time_zone] unless args[:statistics_time_zone].nil?
@files = args[:files] if args.key?(:files)
@id = args[:id] if args.key?(:id)
@is_report_ready = args[:is_report_ready] if args.key?(:is_report_ready)
@kind = args[:kind] if args.key?(:kind)
@request = args[:request] if args.key?(:request)
@row_count = args[:row_count] if args.key?(:row_count)
@rows = args[:rows] if args.key?(:rows)
@statistics_currency_code = args[:statistics_currency_code] if args.key?(:statistics_currency_code)
@statistics_time_zone = args[:statistics_time_zone] if args.key?(:statistics_time_zone)
end
#
@ -477,8 +477,8 @@ module Google
# Update properties of this object
def update!(**args)
@byte_count = args[:byte_count] unless args[:byte_count].nil?
@url = args[:url] unless args[:url].nil?
@byte_count = args[:byte_count] if args.key?(:byte_count)
@url = args[:url] if args.key?(:url)
end
end
end
@ -567,16 +567,16 @@ module Google
# Update properties of this object
def update!(**args)
@column_name = args[:column_name] unless args[:column_name].nil?
@custom_dimension_name = args[:custom_dimension_name] unless args[:custom_dimension_name].nil?
@custom_metric_name = args[:custom_metric_name] unless args[:custom_metric_name].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@group_by_column = args[:group_by_column] unless args[:group_by_column].nil?
@header_text = args[:header_text] unless args[:header_text].nil?
@platform_source = args[:platform_source] unless args[:platform_source].nil?
@product_report_perspective = args[:product_report_perspective] unless args[:product_report_perspective].nil?
@saved_column_name = args[:saved_column_name] unless args[:saved_column_name].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@column_name = args[:column_name] if args.key?(:column_name)
@custom_dimension_name = args[:custom_dimension_name] if args.key?(:custom_dimension_name)
@custom_metric_name = args[:custom_metric_name] if args.key?(:custom_metric_name)
@end_date = args[:end_date] if args.key?(:end_date)
@group_by_column = args[:group_by_column] if args.key?(:group_by_column)
@header_text = args[:header_text] if args.key?(:header_text)
@platform_source = args[:platform_source] if args.key?(:platform_source)
@product_report_perspective = args[:product_report_perspective] if args.key?(:product_report_perspective)
@saved_column_name = args[:saved_column_name] if args.key?(:saved_column_name)
@start_date = args[:start_date] if args.key?(:start_date)
end
end
@ -684,20 +684,20 @@ module Google
# Update properties of this object
def update!(**args)
@columns = args[:columns] unless args[:columns].nil?
@download_format = args[:download_format] unless args[:download_format].nil?
@filters = args[:filters] unless args[:filters].nil?
@include_deleted_entities = args[:include_deleted_entities] unless args[:include_deleted_entities].nil?
@include_removed_entities = args[:include_removed_entities] unless args[:include_removed_entities].nil?
@max_rows_per_file = args[:max_rows_per_file] unless args[:max_rows_per_file].nil?
@order_by = args[:order_by] unless args[:order_by].nil?
@report_scope = args[:report_scope] unless args[:report_scope].nil?
@report_type = args[:report_type] unless args[:report_type].nil?
@row_count = args[:row_count] unless args[:row_count].nil?
@start_row = args[:start_row] unless args[:start_row].nil?
@statistics_currency = args[:statistics_currency] unless args[:statistics_currency].nil?
@time_range = args[:time_range] unless args[:time_range].nil?
@verify_single_time_zone = args[:verify_single_time_zone] unless args[:verify_single_time_zone].nil?
@columns = args[:columns] if args.key?(:columns)
@download_format = args[:download_format] if args.key?(:download_format)
@filters = args[:filters] if args.key?(:filters)
@include_deleted_entities = args[:include_deleted_entities] if args.key?(:include_deleted_entities)
@include_removed_entities = args[:include_removed_entities] if args.key?(:include_removed_entities)
@max_rows_per_file = args[:max_rows_per_file] if args.key?(:max_rows_per_file)
@order_by = args[:order_by] if args.key?(:order_by)
@report_scope = args[:report_scope] if args.key?(:report_scope)
@report_type = args[:report_type] if args.key?(:report_type)
@row_count = args[:row_count] if args.key?(:row_count)
@start_row = args[:start_row] if args.key?(:start_row)
@statistics_currency = args[:statistics_currency] if args.key?(:statistics_currency)
@time_range = args[:time_range] if args.key?(:time_range)
@verify_single_time_zone = args[:verify_single_time_zone] if args.key?(:verify_single_time_zone)
end
#
@ -726,9 +726,9 @@ module Google
# Update properties of this object
def update!(**args)
@column = args[:column] unless args[:column].nil?
@operator = args[:operator] unless args[:operator].nil?
@values = args[:values] unless args[:values].nil?
@column = args[:column] if args.key?(:column)
@operator = args[:operator] if args.key?(:operator)
@values = args[:values] if args.key?(:values)
end
end
@ -752,8 +752,8 @@ module Google
# Update properties of this object
def update!(**args)
@column = args[:column] unless args[:column].nil?
@sort_order = args[:sort_order] unless args[:sort_order].nil?
@column = args[:column] if args.key?(:column)
@sort_order = args[:sort_order] if args.key?(:sort_order)
end
end
@ -804,13 +804,13 @@ module Google
# Update properties of this object
def update!(**args)
@ad_group_id = args[:ad_group_id] unless args[:ad_group_id].nil?
@ad_id = args[:ad_id] unless args[:ad_id].nil?
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@agency_id = args[:agency_id] unless args[:agency_id].nil?
@campaign_id = args[:campaign_id] unless args[:campaign_id].nil?
@engine_account_id = args[:engine_account_id] unless args[:engine_account_id].nil?
@keyword_id = args[:keyword_id] unless args[:keyword_id].nil?
@ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id)
@ad_id = args[:ad_id] if args.key?(:ad_id)
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@agency_id = args[:agency_id] if args.key?(:agency_id)
@campaign_id = args[:campaign_id] if args.key?(:campaign_id)
@engine_account_id = args[:engine_account_id] if args.key?(:engine_account_id)
@keyword_id = args[:keyword_id] if args.key?(:keyword_id)
end
end
@ -847,10 +847,10 @@ module Google
# Update properties of this object
def update!(**args)
@changed_attributes_since_timestamp = args[:changed_attributes_since_timestamp] unless args[:changed_attributes_since_timestamp].nil?
@changed_metrics_since_timestamp = args[:changed_metrics_since_timestamp] unless args[:changed_metrics_since_timestamp].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@changed_attributes_since_timestamp = args[:changed_attributes_since_timestamp] if args.key?(:changed_attributes_since_timestamp)
@changed_metrics_since_timestamp = args[:changed_metrics_since_timestamp] if args.key?(:changed_metrics_since_timestamp)
@end_date = args[:end_date] if args.key?(:end_date)
@start_date = args[:start_date] if args.key?(:start_date)
end
end
end
@ -881,9 +881,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@saved_column_name = args[:saved_column_name] unless args[:saved_column_name].nil?
@type = args[:type] unless args[:type].nil?
@kind = args[:kind] if args.key?(:kind)
@saved_column_name = args[:saved_column_name] if args.key?(:saved_column_name)
@type = args[:type] if args.key?(:type)
end
end
@ -911,8 +911,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -931,7 +931,7 @@ module Google
# Update properties of this object
def update!(**args)
@availabilities = args[:availabilities] unless args[:availabilities].nil?
@availabilities = args[:availabilities] if args.key?(:availabilities)
end
end
@ -950,7 +950,7 @@ module Google
# Update properties of this object
def update!(**args)
@availabilities = args[:availabilities] unless args[:availabilities].nil?
@availabilities = args[:availabilities] if args.key?(:availabilities)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20160114'
REVISION = '20160126'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -163,30 +163,30 @@ module Google
# Update properties of this object
def update!(**args)
@additional_role_info = args[:additional_role_info] unless args[:additional_role_info].nil?
@domain_sharing_policy = args[:domain_sharing_policy] unless args[:domain_sharing_policy].nil?
@etag = args[:etag] unless args[:etag].nil?
@export_formats = args[:export_formats] unless args[:export_formats].nil?
@features = args[:features] unless args[:features].nil?
@folder_color_palette = args[:folder_color_palette] unless args[:folder_color_palette].nil?
@import_formats = args[:import_formats] unless args[:import_formats].nil?
@is_current_app_installed = args[:is_current_app_installed] unless args[:is_current_app_installed].nil?
@kind = args[:kind] unless args[:kind].nil?
@language_code = args[:language_code] unless args[:language_code].nil?
@largest_change_id = args[:largest_change_id] unless args[:largest_change_id].nil?
@max_upload_sizes = args[:max_upload_sizes] unless args[:max_upload_sizes].nil?
@name = args[:name] unless args[:name].nil?
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@quota_bytes_by_service = args[:quota_bytes_by_service] unless args[:quota_bytes_by_service].nil?
@quota_bytes_total = args[:quota_bytes_total] unless args[:quota_bytes_total].nil?
@quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil?
@quota_bytes_used_aggregate = args[:quota_bytes_used_aggregate] unless args[:quota_bytes_used_aggregate].nil?
@quota_bytes_used_in_trash = args[:quota_bytes_used_in_trash] unless args[:quota_bytes_used_in_trash].nil?
@quota_type = args[:quota_type] unless args[:quota_type].nil?
@remaining_change_ids = args[:remaining_change_ids] unless args[:remaining_change_ids].nil?
@root_folder_id = args[:root_folder_id] unless args[:root_folder_id].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@user = args[:user] unless args[:user].nil?
@additional_role_info = args[:additional_role_info] if args.key?(:additional_role_info)
@domain_sharing_policy = args[:domain_sharing_policy] if args.key?(:domain_sharing_policy)
@etag = args[:etag] if args.key?(:etag)
@export_formats = args[:export_formats] if args.key?(:export_formats)
@features = args[:features] if args.key?(:features)
@folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette)
@import_formats = args[:import_formats] if args.key?(:import_formats)
@is_current_app_installed = args[:is_current_app_installed] if args.key?(:is_current_app_installed)
@kind = args[:kind] if args.key?(:kind)
@language_code = args[:language_code] if args.key?(:language_code)
@largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id)
@max_upload_sizes = args[:max_upload_sizes] if args.key?(:max_upload_sizes)
@name = args[:name] if args.key?(:name)
@permission_id = args[:permission_id] if args.key?(:permission_id)
@quota_bytes_by_service = args[:quota_bytes_by_service] if args.key?(:quota_bytes_by_service)
@quota_bytes_total = args[:quota_bytes_total] if args.key?(:quota_bytes_total)
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@quota_bytes_used_aggregate = args[:quota_bytes_used_aggregate] if args.key?(:quota_bytes_used_aggregate)
@quota_bytes_used_in_trash = args[:quota_bytes_used_in_trash] if args.key?(:quota_bytes_used_in_trash)
@quota_type = args[:quota_type] if args.key?(:quota_type)
@remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids)
@root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id)
@self_link = args[:self_link] if args.key?(:self_link)
@user = args[:user] if args.key?(:user)
end
#
@ -209,8 +209,8 @@ module Google
# Update properties of this object
def update!(**args)
@role_sets = args[:role_sets] unless args[:role_sets].nil?
@type = args[:type] unless args[:type].nil?
@role_sets = args[:role_sets] if args.key?(:role_sets)
@type = args[:type] if args.key?(:type)
end
#
@ -233,8 +233,8 @@ module Google
# Update properties of this object
def update!(**args)
@additional_roles = args[:additional_roles] unless args[:additional_roles].nil?
@primary_role = args[:primary_role] unless args[:primary_role].nil?
@additional_roles = args[:additional_roles] if args.key?(:additional_roles)
@primary_role = args[:primary_role] if args.key?(:primary_role)
end
end
end
@ -259,8 +259,8 @@ module Google
# Update properties of this object
def update!(**args)
@source = args[:source] unless args[:source].nil?
@targets = args[:targets] unless args[:targets].nil?
@source = args[:source] if args.key?(:source)
@targets = args[:targets] if args.key?(:targets)
end
end
@ -284,8 +284,8 @@ module Google
# Update properties of this object
def update!(**args)
@feature_name = args[:feature_name] unless args[:feature_name].nil?
@feature_rate = args[:feature_rate] unless args[:feature_rate].nil?
@feature_name = args[:feature_name] if args.key?(:feature_name)
@feature_rate = args[:feature_rate] if args.key?(:feature_rate)
end
end
@ -309,8 +309,8 @@ module Google
# Update properties of this object
def update!(**args)
@source = args[:source] unless args[:source].nil?
@targets = args[:targets] unless args[:targets].nil?
@source = args[:source] if args.key?(:source)
@targets = args[:targets] if args.key?(:targets)
end
end
@ -334,8 +334,8 @@ module Google
# Update properties of this object
def update!(**args)
@size = args[:size] unless args[:size].nil?
@type = args[:type] unless args[:type].nil?
@size = args[:size] if args.key?(:size)
@type = args[:type] if args.key?(:type)
end
end
@ -359,8 +359,8 @@ module Google
# Update properties of this object
def update!(**args)
@bytes_used = args[:bytes_used] unless args[:bytes_used].nil?
@service_name = args[:service_name] unless args[:service_name].nil?
@bytes_used = args[:bytes_used] if args.key?(:bytes_used)
@service_name = args[:service_name] if args.key?(:service_name)
end
end
end
@ -511,30 +511,30 @@ module Google
# Update properties of this object
def update!(**args)
@authorized = args[:authorized] unless args[:authorized].nil?
@create_in_folder_template = args[:create_in_folder_template] unless args[:create_in_folder_template].nil?
@create_url = args[:create_url] unless args[:create_url].nil?
@has_drive_wide_scope = args[:has_drive_wide_scope] unless args[:has_drive_wide_scope].nil?
@icons = args[:icons] unless args[:icons].nil?
@id = args[:id] unless args[:id].nil?
@installed = args[:installed] unless args[:installed].nil?
@kind = args[:kind] unless args[:kind].nil?
@long_description = args[:long_description] unless args[:long_description].nil?
@name = args[:name] unless args[:name].nil?
@object_type = args[:object_type] unless args[:object_type].nil?
@open_url_template = args[:open_url_template] unless args[:open_url_template].nil?
@primary_file_extensions = args[:primary_file_extensions] unless args[:primary_file_extensions].nil?
@primary_mime_types = args[:primary_mime_types] unless args[:primary_mime_types].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
@product_url = args[:product_url] unless args[:product_url].nil?
@secondary_file_extensions = args[:secondary_file_extensions] unless args[:secondary_file_extensions].nil?
@secondary_mime_types = args[:secondary_mime_types] unless args[:secondary_mime_types].nil?
@short_description = args[:short_description] unless args[:short_description].nil?
@supports_create = args[:supports_create] unless args[:supports_create].nil?
@supports_import = args[:supports_import] unless args[:supports_import].nil?
@supports_multi_open = args[:supports_multi_open] unless args[:supports_multi_open].nil?
@supports_offline_create = args[:supports_offline_create] unless args[:supports_offline_create].nil?
@use_by_default = args[:use_by_default] unless args[:use_by_default].nil?
@authorized = args[:authorized] if args.key?(:authorized)
@create_in_folder_template = args[:create_in_folder_template] if args.key?(:create_in_folder_template)
@create_url = args[:create_url] if args.key?(:create_url)
@has_drive_wide_scope = args[:has_drive_wide_scope] if args.key?(:has_drive_wide_scope)
@icons = args[:icons] if args.key?(:icons)
@id = args[:id] if args.key?(:id)
@installed = args[:installed] if args.key?(:installed)
@kind = args[:kind] if args.key?(:kind)
@long_description = args[:long_description] if args.key?(:long_description)
@name = args[:name] if args.key?(:name)
@object_type = args[:object_type] if args.key?(:object_type)
@open_url_template = args[:open_url_template] if args.key?(:open_url_template)
@primary_file_extensions = args[:primary_file_extensions] if args.key?(:primary_file_extensions)
@primary_mime_types = args[:primary_mime_types] if args.key?(:primary_mime_types)
@product_id = args[:product_id] if args.key?(:product_id)
@product_url = args[:product_url] if args.key?(:product_url)
@secondary_file_extensions = args[:secondary_file_extensions] if args.key?(:secondary_file_extensions)
@secondary_mime_types = args[:secondary_mime_types] if args.key?(:secondary_mime_types)
@short_description = args[:short_description] if args.key?(:short_description)
@supports_create = args[:supports_create] if args.key?(:supports_create)
@supports_import = args[:supports_import] if args.key?(:supports_import)
@supports_multi_open = args[:supports_multi_open] if args.key?(:supports_multi_open)
@supports_offline_create = args[:supports_offline_create] if args.key?(:supports_offline_create)
@use_by_default = args[:use_by_default] if args.key?(:use_by_default)
end
#
@ -565,9 +565,9 @@ module Google
# Update properties of this object
def update!(**args)
@category = args[:category] unless args[:category].nil?
@icon_url = args[:icon_url] unless args[:icon_url].nil?
@size = args[:size] unless args[:size].nil?
@category = args[:category] if args.key?(:category)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@size = args[:size] if args.key?(:size)
end
end
end
@ -609,11 +609,11 @@ module Google
# Update properties of this object
def update!(**args)
@default_app_ids = args[:default_app_ids] unless args[:default_app_ids].nil?
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@default_app_ids = args[:default_app_ids] if args.key?(:default_app_ids)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -663,13 +663,13 @@ module Google
# Update properties of this object
def update!(**args)
@deleted = args[:deleted] unless args[:deleted].nil?
@file = args[:file] unless args[:file].nil?
@file_id = args[:file_id] unless args[:file_id].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@modification_date = args[:modification_date] unless args[:modification_date].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@deleted = args[:deleted] if args.key?(:deleted)
@file = args[:file] if args.key?(:file)
@file_id = args[:file_id] if args.key?(:file_id)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@modification_date = args[:modification_date] if args.key?(:modification_date)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -718,13 +718,13 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@largest_change_id = args[:largest_change_id] unless args[:largest_change_id].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id)
@next_link = args[:next_link] if args.key?(:next_link)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -793,16 +793,16 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@params = args[:params] unless args[:params].nil?
@payload = args[:payload] unless args[:payload].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@address = args[:address] if args.key?(:address)
@expiration = args[:expiration] if args.key?(:expiration)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@params = args[:params] if args.key?(:params)
@payload = args[:payload] if args.key?(:payload)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
@ -846,12 +846,12 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_link = args[:next_link] if args.key?(:next_link)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -885,10 +885,10 @@ module Google
# Update properties of this object
def update!(**args)
@child_link = args[:child_link] unless args[:child_link].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@child_link = args[:child_link] if args.key?(:child_link)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -985,21 +985,21 @@ module Google
# Update properties of this object
def update!(**args)
@anchor = args[:anchor] unless args[:anchor].nil?
@author = args[:author] unless args[:author].nil?
@comment_id = args[:comment_id] unless args[:comment_id].nil?
@content = args[:content] unless args[:content].nil?
@context = args[:context] unless args[:context].nil?
@created_date = args[:created_date] unless args[:created_date].nil?
@deleted = args[:deleted] unless args[:deleted].nil?
@file_id = args[:file_id] unless args[:file_id].nil?
@file_title = args[:file_title] unless args[:file_title].nil?
@html_content = args[:html_content] unless args[:html_content].nil?
@kind = args[:kind] unless args[:kind].nil?
@modified_date = args[:modified_date] unless args[:modified_date].nil?
@replies = args[:replies] unless args[:replies].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@status = args[:status] unless args[:status].nil?
@anchor = args[:anchor] if args.key?(:anchor)
@author = args[:author] if args.key?(:author)
@comment_id = args[:comment_id] if args.key?(:comment_id)
@content = args[:content] if args.key?(:content)
@context = args[:context] if args.key?(:context)
@created_date = args[:created_date] if args.key?(:created_date)
@deleted = args[:deleted] if args.key?(:deleted)
@file_id = args[:file_id] if args.key?(:file_id)
@file_title = args[:file_title] if args.key?(:file_title)
@html_content = args[:html_content] if args.key?(:html_content)
@kind = args[:kind] if args.key?(:kind)
@modified_date = args[:modified_date] if args.key?(:modified_date)
@replies = args[:replies] if args.key?(:replies)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
# The context of the file which is being commented on.
@ -1024,8 +1024,8 @@ module Google
# Update properties of this object
def update!(**args)
@type = args[:type] unless args[:type].nil?
@value = args[:value] unless args[:value].nil?
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
end
end
end
@ -1065,11 +1065,11 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_link = args[:next_link] if args.key?(:next_link)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -1136,15 +1136,15 @@ module Google
# Update properties of this object
def update!(**args)
@author = args[:author] unless args[:author].nil?
@content = args[:content] unless args[:content].nil?
@created_date = args[:created_date] unless args[:created_date].nil?
@deleted = args[:deleted] unless args[:deleted].nil?
@html_content = args[:html_content] unless args[:html_content].nil?
@kind = args[:kind] unless args[:kind].nil?
@modified_date = args[:modified_date] unless args[:modified_date].nil?
@reply_id = args[:reply_id] unless args[:reply_id].nil?
@verb = args[:verb] unless args[:verb].nil?
@author = args[:author] if args.key?(:author)
@content = args[:content] if args.key?(:content)
@created_date = args[:created_date] if args.key?(:created_date)
@deleted = args[:deleted] if args.key?(:deleted)
@html_content = args[:html_content] if args.key?(:html_content)
@kind = args[:kind] if args.key?(:kind)
@modified_date = args[:modified_date] if args.key?(:modified_date)
@reply_id = args[:reply_id] if args.key?(:reply_id)
@verb = args[:verb] if args.key?(:verb)
end
end
@ -1183,11 +1183,11 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_link = args[:next_link] if args.key?(:next_link)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -1529,62 +1529,62 @@ module Google
# Update properties of this object
def update!(**args)
@alternate_link = args[:alternate_link] unless args[:alternate_link].nil?
@app_data_contents = args[:app_data_contents] unless args[:app_data_contents].nil?
@can_comment = args[:can_comment] unless args[:can_comment].nil?
@copyable = args[:copyable] unless args[:copyable].nil?
@created_date = args[:created_date] unless args[:created_date].nil?
@default_open_with_link = args[:default_open_with_link] unless args[:default_open_with_link].nil?
@description = args[:description] unless args[:description].nil?
@download_url = args[:download_url] unless args[:download_url].nil?
@editable = args[:editable] unless args[:editable].nil?
@embed_link = args[:embed_link] unless args[:embed_link].nil?
@etag = args[:etag] unless args[:etag].nil?
@explicitly_trashed = args[:explicitly_trashed] unless args[:explicitly_trashed].nil?
@export_links = args[:export_links] unless args[:export_links].nil?
@file_extension = args[:file_extension] unless args[:file_extension].nil?
@file_size = args[:file_size] unless args[:file_size].nil?
@folder_color_rgb = args[:folder_color_rgb] unless args[:folder_color_rgb].nil?
@full_file_extension = args[:full_file_extension] unless args[:full_file_extension].nil?
@head_revision_id = args[:head_revision_id] unless args[:head_revision_id].nil?
@icon_link = args[:icon_link] unless args[:icon_link].nil?
@id = args[:id] unless args[:id].nil?
@image_media_metadata = args[:image_media_metadata] unless args[:image_media_metadata].nil?
@indexable_text = args[:indexable_text] unless args[:indexable_text].nil?
@kind = args[:kind] unless args[:kind].nil?
@labels = args[:labels] unless args[:labels].nil?
@last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil?
@last_modifying_user_name = args[:last_modifying_user_name] unless args[:last_modifying_user_name].nil?
@last_viewed_by_me_date = args[:last_viewed_by_me_date] unless args[:last_viewed_by_me_date].nil?
@marked_viewed_by_me_date = args[:marked_viewed_by_me_date] unless args[:marked_viewed_by_me_date].nil?
@md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@modified_by_me_date = args[:modified_by_me_date] unless args[:modified_by_me_date].nil?
@modified_date = args[:modified_date] unless args[:modified_date].nil?
@open_with_links = args[:open_with_links] unless args[:open_with_links].nil?
@original_filename = args[:original_filename] unless args[:original_filename].nil?
@owned_by_me = args[:owned_by_me] unless args[:owned_by_me].nil?
@owner_names = args[:owner_names] unless args[:owner_names].nil?
@owners = args[:owners] unless args[:owners].nil?
@parents = args[:parents] unless args[:parents].nil?
@permissions = args[:permissions] unless args[:permissions].nil?
@properties = args[:properties] unless args[:properties].nil?
@quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@shareable = args[:shareable] unless args[:shareable].nil?
@shared = args[:shared] unless args[:shared].nil?
@shared_with_me_date = args[:shared_with_me_date] unless args[:shared_with_me_date].nil?
@sharing_user = args[:sharing_user] unless args[:sharing_user].nil?
@spaces = args[:spaces] unless args[:spaces].nil?
@thumbnail = args[:thumbnail] unless args[:thumbnail].nil?
@thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil?
@title = args[:title] unless args[:title].nil?
@user_permission = args[:user_permission] unless args[:user_permission].nil?
@version = args[:version] unless args[:version].nil?
@video_media_metadata = args[:video_media_metadata] unless args[:video_media_metadata].nil?
@web_content_link = args[:web_content_link] unless args[:web_content_link].nil?
@web_view_link = args[:web_view_link] unless args[:web_view_link].nil?
@writers_can_share = args[:writers_can_share] unless args[:writers_can_share].nil?
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
@app_data_contents = args[:app_data_contents] if args.key?(:app_data_contents)
@can_comment = args[:can_comment] if args.key?(:can_comment)
@copyable = args[:copyable] if args.key?(:copyable)
@created_date = args[:created_date] if args.key?(:created_date)
@default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
@description = args[:description] if args.key?(:description)
@download_url = args[:download_url] if args.key?(:download_url)
@editable = args[:editable] if args.key?(:editable)
@embed_link = args[:embed_link] if args.key?(:embed_link)
@etag = args[:etag] if args.key?(:etag)
@explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
@export_links = args[:export_links] if args.key?(:export_links)
@file_extension = args[:file_extension] if args.key?(:file_extension)
@file_size = args[:file_size] if args.key?(:file_size)
@folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
@full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
@head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@id = args[:id] if args.key?(:id)
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
@indexable_text = args[:indexable_text] if args.key?(:indexable_text)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name)
@last_viewed_by_me_date = args[:last_viewed_by_me_date] if args.key?(:last_viewed_by_me_date)
@marked_viewed_by_me_date = args[:marked_viewed_by_me_date] if args.key?(:marked_viewed_by_me_date)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@modified_by_me_date = args[:modified_by_me_date] if args.key?(:modified_by_me_date)
@modified_date = args[:modified_date] if args.key?(:modified_date)
@open_with_links = args[:open_with_links] if args.key?(:open_with_links)
@original_filename = args[:original_filename] if args.key?(:original_filename)
@owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me)
@owner_names = args[:owner_names] if args.key?(:owner_names)
@owners = args[:owners] if args.key?(:owners)
@parents = args[:parents] if args.key?(:parents)
@permissions = args[:permissions] if args.key?(:permissions)
@properties = args[:properties] if args.key?(:properties)
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@self_link = args[:self_link] if args.key?(:self_link)
@shareable = args[:shareable] if args.key?(:shareable)
@shared = args[:shared] if args.key?(:shared)
@shared_with_me_date = args[:shared_with_me_date] if args.key?(:shared_with_me_date)
@sharing_user = args[:sharing_user] if args.key?(:sharing_user)
@spaces = args[:spaces] if args.key?(:spaces)
@thumbnail = args[:thumbnail] if args.key?(:thumbnail)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@title = args[:title] if args.key?(:title)
@user_permission = args[:user_permission] if args.key?(:user_permission)
@version = args[:version] if args.key?(:version)
@video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@web_content_link = args[:web_content_link] if args.key?(:web_content_link)
@web_view_link = args[:web_view_link] if args.key?(:web_view_link)
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
end
# Metadata about image media. This will only be present for image types, and its
@ -1705,27 +1705,27 @@ module Google
# Update properties of this object
def update!(**args)
@aperture = args[:aperture] unless args[:aperture].nil?
@camera_make = args[:camera_make] unless args[:camera_make].nil?
@camera_model = args[:camera_model] unless args[:camera_model].nil?
@color_space = args[:color_space] unless args[:color_space].nil?
@date = args[:date] unless args[:date].nil?
@exposure_bias = args[:exposure_bias] unless args[:exposure_bias].nil?
@exposure_mode = args[:exposure_mode] unless args[:exposure_mode].nil?
@exposure_time = args[:exposure_time] unless args[:exposure_time].nil?
@flash_used = args[:flash_used] unless args[:flash_used].nil?
@focal_length = args[:focal_length] unless args[:focal_length].nil?
@height = args[:height] unless args[:height].nil?
@iso_speed = args[:iso_speed] unless args[:iso_speed].nil?
@lens = args[:lens] unless args[:lens].nil?
@location = args[:location] unless args[:location].nil?
@max_aperture_value = args[:max_aperture_value] unless args[:max_aperture_value].nil?
@metering_mode = args[:metering_mode] unless args[:metering_mode].nil?
@rotation = args[:rotation] unless args[:rotation].nil?
@sensor = args[:sensor] unless args[:sensor].nil?
@subject_distance = args[:subject_distance] unless args[:subject_distance].nil?
@white_balance = args[:white_balance] unless args[:white_balance].nil?
@width = args[:width] unless args[:width].nil?
@aperture = args[:aperture] if args.key?(:aperture)
@camera_make = args[:camera_make] if args.key?(:camera_make)
@camera_model = args[:camera_model] if args.key?(:camera_model)
@color_space = args[:color_space] if args.key?(:color_space)
@date = args[:date] if args.key?(:date)
@exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias)
@exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode)
@exposure_time = args[:exposure_time] if args.key?(:exposure_time)
@flash_used = args[:flash_used] if args.key?(:flash_used)
@focal_length = args[:focal_length] if args.key?(:focal_length)
@height = args[:height] if args.key?(:height)
@iso_speed = args[:iso_speed] if args.key?(:iso_speed)
@lens = args[:lens] if args.key?(:lens)
@location = args[:location] if args.key?(:location)
@max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value)
@metering_mode = args[:metering_mode] if args.key?(:metering_mode)
@rotation = args[:rotation] if args.key?(:rotation)
@sensor = args[:sensor] if args.key?(:sensor)
@subject_distance = args[:subject_distance] if args.key?(:subject_distance)
@white_balance = args[:white_balance] if args.key?(:white_balance)
@width = args[:width] if args.key?(:width)
end
# Geographic location information stored in the image.
@ -1753,9 +1753,9 @@ module Google
# Update properties of this object
def update!(**args)
@altitude = args[:altitude] unless args[:altitude].nil?
@latitude = args[:latitude] unless args[:latitude].nil?
@longitude = args[:longitude] unless args[:longitude].nil?
@altitude = args[:altitude] if args.key?(:altitude)
@latitude = args[:latitude] if args.key?(:latitude)
@longitude = args[:longitude] if args.key?(:longitude)
end
end
end
@ -1775,7 +1775,7 @@ module Google
# Update properties of this object
def update!(**args)
@text = args[:text] unless args[:text].nil?
@text = args[:text] if args.key?(:text)
end
end
@ -1821,11 +1821,11 @@ module Google
# Update properties of this object
def update!(**args)
@hidden = args[:hidden] unless args[:hidden].nil?
@restricted = args[:restricted] unless args[:restricted].nil?
@starred = args[:starred] unless args[:starred].nil?
@trashed = args[:trashed] unless args[:trashed].nil?
@viewed = args[:viewed] unless args[:viewed].nil?
@hidden = args[:hidden] if args.key?(:hidden)
@restricted = args[:restricted] if args.key?(:restricted)
@starred = args[:starred] if args.key?(:starred)
@trashed = args[:trashed] if args.key?(:trashed)
@viewed = args[:viewed] if args.key?(:viewed)
end
end
@ -1851,8 +1851,8 @@ module Google
# Update properties of this object
def update!(**args)
@image = args[:image] unless args[:image].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@image = args[:image] if args.key?(:image)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
@ -1881,9 +1881,9 @@ module Google
# Update properties of this object
def update!(**args)
@duration_millis = args[:duration_millis] unless args[:duration_millis].nil?
@height = args[:height] unless args[:height].nil?
@width = args[:width] unless args[:width].nil?
@duration_millis = args[:duration_millis] if args.key?(:duration_millis)
@height = args[:height] if args.key?(:height)
@width = args[:width] if args.key?(:width)
end
end
end
@ -1928,12 +1928,12 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_link = args[:next_link] unless args[:next_link].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_link = args[:next_link] if args.key?(:next_link)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -1962,9 +1962,9 @@ module Google
# Update properties of this object
def update!(**args)
@ids = args[:ids] unless args[:ids].nil?
@kind = args[:kind] unless args[:kind].nil?
@space = args[:space] unless args[:space].nil?
@ids = args[:ids] if args.key?(:ids)
@kind = args[:kind] if args.key?(:kind)
@space = args[:space] if args.key?(:space)
end
end
@ -1998,10 +1998,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2041,11 +2041,11 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@is_root = args[:is_root] unless args[:is_root].nil?
@kind = args[:kind] unless args[:kind].nil?
@parent_link = args[:parent_link] unless args[:parent_link].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@id = args[:id] if args.key?(:id)
@is_root = args[:is_root] if args.key?(:is_root)
@kind = args[:kind] if args.key?(:kind)
@parent_link = args[:parent_link] if args.key?(:parent_link)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2143,20 +2143,20 @@ module Google
# Update properties of this object
def update!(**args)
@additional_roles = args[:additional_roles] unless args[:additional_roles].nil?
@auth_key = args[:auth_key] unless args[:auth_key].nil?
@domain = args[:domain] unless args[:domain].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@etag = args[:etag] unless args[:etag].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@photo_link = args[:photo_link] unless args[:photo_link].nil?
@role = args[:role] unless args[:role].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@type = args[:type] unless args[:type].nil?
@value = args[:value] unless args[:value].nil?
@with_link = args[:with_link] unless args[:with_link].nil?
@additional_roles = args[:additional_roles] if args.key?(:additional_roles)
@auth_key = args[:auth_key] if args.key?(:auth_key)
@domain = args[:domain] if args.key?(:domain)
@email_address = args[:email_address] if args.key?(:email_address)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@photo_link = args[:photo_link] if args.key?(:photo_link)
@role = args[:role] if args.key?(:role)
@self_link = args[:self_link] if args.key?(:self_link)
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
@with_link = args[:with_link] if args.key?(:with_link)
end
end
@ -2180,8 +2180,8 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -2215,10 +2215,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2269,12 +2269,12 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@key = args[:key] unless args[:key].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@value = args[:value] unless args[:value].nil?
@visibility = args[:visibility] unless args[:visibility].nil?
@etag = args[:etag] if args.key?(:etag)
@key = args[:key] if args.key?(:key)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
@value = args[:value] if args.key?(:value)
@visibility = args[:visibility] if args.key?(:visibility)
end
end
@ -2309,10 +2309,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2430,24 +2430,24 @@ module Google
# Update properties of this object
def update!(**args)
@download_url = args[:download_url] unless args[:download_url].nil?
@etag = args[:etag] unless args[:etag].nil?
@export_links = args[:export_links] unless args[:export_links].nil?
@file_size = args[:file_size] unless args[:file_size].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil?
@last_modifying_user_name = args[:last_modifying_user_name] unless args[:last_modifying_user_name].nil?
@md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@modified_date = args[:modified_date] unless args[:modified_date].nil?
@original_filename = args[:original_filename] unless args[:original_filename].nil?
@pinned = args[:pinned] unless args[:pinned].nil?
@publish_auto = args[:publish_auto] unless args[:publish_auto].nil?
@published = args[:published] unless args[:published].nil?
@published_link = args[:published_link] unless args[:published_link].nil?
@published_outside_domain = args[:published_outside_domain] unless args[:published_outside_domain].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@download_url = args[:download_url] if args.key?(:download_url)
@etag = args[:etag] if args.key?(:etag)
@export_links = args[:export_links] if args.key?(:export_links)
@file_size = args[:file_size] if args.key?(:file_size)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@modified_date = args[:modified_date] if args.key?(:modified_date)
@original_filename = args[:original_filename] if args.key?(:original_filename)
@pinned = args[:pinned] if args.key?(:pinned)
@publish_auto = args[:publish_auto] if args.key?(:publish_auto)
@published = args[:published] if args.key?(:published)
@published_link = args[:published_link] if args.key?(:published_link)
@published_outside_domain = args[:published_outside_domain] if args.key?(:published_outside_domain)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2481,10 +2481,10 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@self_link = args[:self_link] unless args[:self_link].nil?
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
@ -2530,12 +2530,12 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@is_authenticated_user = args[:is_authenticated_user] unless args[:is_authenticated_user].nil?
@kind = args[:kind] unless args[:kind].nil?
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@picture = args[:picture] unless args[:picture].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email_address = args[:email_address] if args.key?(:email_address)
@is_authenticated_user = args[:is_authenticated_user] if args.key?(:is_authenticated_user)
@kind = args[:kind] if args.key?(:kind)
@permission_id = args[:permission_id] if args.key?(:permission_id)
@picture = args[:picture] if args.key?(:picture)
end
# The user's profile picture.
@ -2553,7 +2553,7 @@ module Google
# Update properties of this object
def update!(**args)
@url = args[:url] unless args[:url].nil?
@url = args[:url] if args.key?(:url)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20160114'
REVISION = '20160126'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -78,15 +78,15 @@ module Google
# Update properties of this object
def update!(**args)
@app_installed = args[:app_installed] unless args[:app_installed].nil?
@export_formats = args[:export_formats] unless args[:export_formats].nil?
@folder_color_palette = args[:folder_color_palette] unless args[:folder_color_palette].nil?
@import_formats = args[:import_formats] unless args[:import_formats].nil?
@kind = args[:kind] unless args[:kind].nil?
@max_import_sizes = args[:max_import_sizes] unless args[:max_import_sizes].nil?
@max_upload_size = args[:max_upload_size] unless args[:max_upload_size].nil?
@storage_quota = args[:storage_quota] unless args[:storage_quota].nil?
@user = args[:user] unless args[:user].nil?
@app_installed = args[:app_installed] if args.key?(:app_installed)
@export_formats = args[:export_formats] if args.key?(:export_formats)
@folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette)
@import_formats = args[:import_formats] if args.key?(:import_formats)
@kind = args[:kind] if args.key?(:kind)
@max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes)
@max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size)
@storage_quota = args[:storage_quota] if args.key?(:storage_quota)
@user = args[:user] if args.key?(:user)
end
# The user's storage quota limits and usage. All fields are measured in bytes.
@ -120,10 +120,10 @@ module Google
# Update properties of this object
def update!(**args)
@limit = args[:limit] unless args[:limit].nil?
@usage = args[:usage] unless args[:usage].nil?
@usage_in_drive = args[:usage_in_drive] unless args[:usage_in_drive].nil?
@usage_in_drive_trash = args[:usage_in_drive_trash] unless args[:usage_in_drive_trash].nil?
@limit = args[:limit] if args.key?(:limit)
@usage = args[:usage] if args.key?(:usage)
@usage_in_drive = args[:usage_in_drive] if args.key?(:usage_in_drive)
@usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash)
end
end
end
@ -165,11 +165,11 @@ module Google
# Update properties of this object
def update!(**args)
@file = args[:file] unless args[:file].nil?
@file_id = args[:file_id] unless args[:file_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@removed = args[:removed] unless args[:removed].nil?
@time = args[:time] unless args[:time].nil?
@file = args[:file] if args.key?(:file)
@file_id = args[:file_id] if args.key?(:file_id)
@kind = args[:kind] if args.key?(:kind)
@removed = args[:removed] if args.key?(:removed)
@time = args[:time] if args.key?(:time)
end
end
@ -205,10 +205,10 @@ module Google
# Update properties of this object
def update!(**args)
@changes = args[:changes] unless args[:changes].nil?
@kind = args[:kind] unless args[:kind].nil?
@new_start_page_token = args[:new_start_page_token] unless args[:new_start_page_token].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@changes = args[:changes] if args.key?(:changes)
@kind = args[:kind] if args.key?(:kind)
@new_start_page_token = args[:new_start_page_token] if args.key?(:new_start_page_token)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -277,16 +277,16 @@ module Google
# Update properties of this object
def update!(**args)
@address = args[:address] unless args[:address].nil?
@expiration = args[:expiration] unless args[:expiration].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@params = args[:params] unless args[:params].nil?
@payload = args[:payload] unless args[:payload].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
@token = args[:token] unless args[:token].nil?
@type = args[:type] unless args[:type].nil?
@address = args[:address] if args.key?(:address)
@expiration = args[:expiration] if args.key?(:expiration)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@params = args[:params] if args.key?(:params)
@payload = args[:payload] if args.key?(:payload)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
@token = args[:token] if args.key?(:token)
@type = args[:type] if args.key?(:type)
end
end
@ -367,18 +367,18 @@ module Google
# Update properties of this object
def update!(**args)
@anchor = args[:anchor] unless args[:anchor].nil?
@author = args[:author] unless args[:author].nil?
@content = args[:content] unless args[:content].nil?
@created_time = args[:created_time] unless args[:created_time].nil?
@deleted = args[:deleted] unless args[:deleted].nil?
@html_content = args[:html_content] unless args[:html_content].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@modified_time = args[:modified_time] unless args[:modified_time].nil?
@quoted_file_content = args[:quoted_file_content] unless args[:quoted_file_content].nil?
@replies = args[:replies] unless args[:replies].nil?
@resolved = args[:resolved] unless args[:resolved].nil?
@anchor = args[:anchor] if args.key?(:anchor)
@author = args[:author] if args.key?(:author)
@content = args[:content] if args.key?(:content)
@created_time = args[:created_time] if args.key?(:created_time)
@deleted = args[:deleted] if args.key?(:deleted)
@html_content = args[:html_content] if args.key?(:html_content)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@modified_time = args[:modified_time] if args.key?(:modified_time)
@quoted_file_content = args[:quoted_file_content] if args.key?(:quoted_file_content)
@replies = args[:replies] if args.key?(:replies)
@resolved = args[:resolved] if args.key?(:resolved)
end
# The file content to which the comment refers, typically within the anchor
@ -404,8 +404,8 @@ module Google
# Update properties of this object
def update!(**args)
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@value = args[:value] unless args[:value].nil?
@mime_type = args[:mime_type] if args.key?(:mime_type)
@value = args[:value] if args.key?(:value)
end
end
end
@ -436,9 +436,9 @@ module Google
# Update properties of this object
def update!(**args)
@comments = args[:comments] unless args[:comments].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@comments = args[:comments] if args.key?(:comments)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -715,49 +715,49 @@ module Google
# Update properties of this object
def update!(**args)
@app_properties = args[:app_properties] unless args[:app_properties].nil?
@capabilities = args[:capabilities] unless args[:capabilities].nil?
@content_hints = args[:content_hints] unless args[:content_hints].nil?
@created_time = args[:created_time] unless args[:created_time].nil?
@description = args[:description] unless args[:description].nil?
@explicitly_trashed = args[:explicitly_trashed] unless args[:explicitly_trashed].nil?
@file_extension = args[:file_extension] unless args[:file_extension].nil?
@folder_color_rgb = args[:folder_color_rgb] unless args[:folder_color_rgb].nil?
@full_file_extension = args[:full_file_extension] unless args[:full_file_extension].nil?
@head_revision_id = args[:head_revision_id] unless args[:head_revision_id].nil?
@icon_link = args[:icon_link] unless args[:icon_link].nil?
@id = args[:id] unless args[:id].nil?
@image_media_metadata = args[:image_media_metadata] unless args[:image_media_metadata].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil?
@md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@modified_by_me_time = args[:modified_by_me_time] unless args[:modified_by_me_time].nil?
@modified_time = args[:modified_time] unless args[:modified_time].nil?
@name = args[:name] unless args[:name].nil?
@original_filename = args[:original_filename] unless args[:original_filename].nil?
@owned_by_me = args[:owned_by_me] unless args[:owned_by_me].nil?
@owners = args[:owners] unless args[:owners].nil?
@parents = args[:parents] unless args[:parents].nil?
@permissions = args[:permissions] unless args[:permissions].nil?
@properties = args[:properties] unless args[:properties].nil?
@quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil?
@shared = args[:shared] unless args[:shared].nil?
@shared_with_me_time = args[:shared_with_me_time] unless args[:shared_with_me_time].nil?
@sharing_user = args[:sharing_user] unless args[:sharing_user].nil?
@size = args[:size] unless args[:size].nil?
@spaces = args[:spaces] unless args[:spaces].nil?
@starred = args[:starred] unless args[:starred].nil?
@thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil?
@trashed = args[:trashed] unless args[:trashed].nil?
@version = args[:version] unless args[:version].nil?
@video_media_metadata = args[:video_media_metadata] unless args[:video_media_metadata].nil?
@viewed_by_me = args[:viewed_by_me] unless args[:viewed_by_me].nil?
@viewed_by_me_time = args[:viewed_by_me_time] unless args[:viewed_by_me_time].nil?
@viewers_can_copy_content = args[:viewers_can_copy_content] unless args[:viewers_can_copy_content].nil?
@web_content_link = args[:web_content_link] unless args[:web_content_link].nil?
@web_view_link = args[:web_view_link] unless args[:web_view_link].nil?
@writers_can_share = args[:writers_can_share] unless args[:writers_can_share].nil?
@app_properties = args[:app_properties] if args.key?(:app_properties)
@capabilities = args[:capabilities] if args.key?(:capabilities)
@content_hints = args[:content_hints] if args.key?(:content_hints)
@created_time = args[:created_time] if args.key?(:created_time)
@description = args[:description] if args.key?(:description)
@explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
@file_extension = args[:file_extension] if args.key?(:file_extension)
@folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
@full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
@head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@id = args[:id] if args.key?(:id)
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
@kind = args[:kind] if args.key?(:kind)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time)
@modified_time = args[:modified_time] if args.key?(:modified_time)
@name = args[:name] if args.key?(:name)
@original_filename = args[:original_filename] if args.key?(:original_filename)
@owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me)
@owners = args[:owners] if args.key?(:owners)
@parents = args[:parents] if args.key?(:parents)
@permissions = args[:permissions] if args.key?(:permissions)
@properties = args[:properties] if args.key?(:properties)
@quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@shared = args[:shared] if args.key?(:shared)
@shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
@sharing_user = args[:sharing_user] if args.key?(:sharing_user)
@size = args[:size] if args.key?(:size)
@spaces = args[:spaces] if args.key?(:spaces)
@starred = args[:starred] if args.key?(:starred)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@trashed = args[:trashed] if args.key?(:trashed)
@version = args[:version] if args.key?(:version)
@video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me)
@viewed_by_me_time = args[:viewed_by_me_time] if args.key?(:viewed_by_me_time)
@viewers_can_copy_content = args[:viewers_can_copy_content] if args.key?(:viewers_can_copy_content)
@web_content_link = args[:web_content_link] if args.key?(:web_content_link)
@web_view_link = args[:web_view_link] if args.key?(:web_view_link)
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
end
# Capabilities the current user has on the file.
@ -794,10 +794,10 @@ module Google
# Update properties of this object
def update!(**args)
@can_comment = args[:can_comment] unless args[:can_comment].nil?
@can_copy = args[:can_copy] unless args[:can_copy].nil?
@can_edit = args[:can_edit] unless args[:can_edit].nil?
@can_share = args[:can_share] unless args[:can_share].nil?
@can_comment = args[:can_comment] if args.key?(:can_comment)
@can_copy = args[:can_copy] if args.key?(:can_copy)
@can_edit = args[:can_edit] if args.key?(:can_edit)
@can_share = args[:can_share] if args.key?(:can_share)
end
end
@ -824,8 +824,8 @@ module Google
# Update properties of this object
def update!(**args)
@indexable_text = args[:indexable_text] unless args[:indexable_text].nil?
@thumbnail = args[:thumbnail] unless args[:thumbnail].nil?
@indexable_text = args[:indexable_text] if args.key?(:indexable_text)
@thumbnail = args[:thumbnail] if args.key?(:thumbnail)
end
# A thumbnail for the file. This will only be used if Drive cannot generate a
@ -849,8 +849,8 @@ module Google
# Update properties of this object
def update!(**args)
@image = args[:image] unless args[:image].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@image = args[:image] if args.key?(:image)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
end
@ -972,27 +972,27 @@ module Google
# Update properties of this object
def update!(**args)
@aperture = args[:aperture] unless args[:aperture].nil?
@camera_make = args[:camera_make] unless args[:camera_make].nil?
@camera_model = args[:camera_model] unless args[:camera_model].nil?
@color_space = args[:color_space] unless args[:color_space].nil?
@exposure_bias = args[:exposure_bias] unless args[:exposure_bias].nil?
@exposure_mode = args[:exposure_mode] unless args[:exposure_mode].nil?
@exposure_time = args[:exposure_time] unless args[:exposure_time].nil?
@flash_used = args[:flash_used] unless args[:flash_used].nil?
@focal_length = args[:focal_length] unless args[:focal_length].nil?
@height = args[:height] unless args[:height].nil?
@iso_speed = args[:iso_speed] unless args[:iso_speed].nil?
@lens = args[:lens] unless args[:lens].nil?
@location = args[:location] unless args[:location].nil?
@max_aperture_value = args[:max_aperture_value] unless args[:max_aperture_value].nil?
@metering_mode = args[:metering_mode] unless args[:metering_mode].nil?
@rotation = args[:rotation] unless args[:rotation].nil?
@sensor = args[:sensor] unless args[:sensor].nil?
@subject_distance = args[:subject_distance] unless args[:subject_distance].nil?
@time = args[:time] unless args[:time].nil?
@white_balance = args[:white_balance] unless args[:white_balance].nil?
@width = args[:width] unless args[:width].nil?
@aperture = args[:aperture] if args.key?(:aperture)
@camera_make = args[:camera_make] if args.key?(:camera_make)
@camera_model = args[:camera_model] if args.key?(:camera_model)
@color_space = args[:color_space] if args.key?(:color_space)
@exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias)
@exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode)
@exposure_time = args[:exposure_time] if args.key?(:exposure_time)
@flash_used = args[:flash_used] if args.key?(:flash_used)
@focal_length = args[:focal_length] if args.key?(:focal_length)
@height = args[:height] if args.key?(:height)
@iso_speed = args[:iso_speed] if args.key?(:iso_speed)
@lens = args[:lens] if args.key?(:lens)
@location = args[:location] if args.key?(:location)
@max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value)
@metering_mode = args[:metering_mode] if args.key?(:metering_mode)
@rotation = args[:rotation] if args.key?(:rotation)
@sensor = args[:sensor] if args.key?(:sensor)
@subject_distance = args[:subject_distance] if args.key?(:subject_distance)
@time = args[:time] if args.key?(:time)
@white_balance = args[:white_balance] if args.key?(:white_balance)
@width = args[:width] if args.key?(:width)
end
# Geographic location information stored in the image.
@ -1020,9 +1020,9 @@ module Google
# Update properties of this object
def update!(**args)
@altitude = args[:altitude] unless args[:altitude].nil?
@latitude = args[:latitude] unless args[:latitude].nil?
@longitude = args[:longitude] unless args[:longitude].nil?
@altitude = args[:altitude] if args.key?(:altitude)
@latitude = args[:latitude] if args.key?(:latitude)
@longitude = args[:longitude] if args.key?(:longitude)
end
end
end
@ -1053,9 +1053,9 @@ module Google
# Update properties of this object
def update!(**args)
@duration_millis = args[:duration_millis] unless args[:duration_millis].nil?
@height = args[:height] unless args[:height].nil?
@width = args[:width] unless args[:width].nil?
@duration_millis = args[:duration_millis] if args.key?(:duration_millis)
@height = args[:height] if args.key?(:height)
@width = args[:width] if args.key?(:width)
end
end
end
@ -1086,9 +1086,9 @@ module Google
# Update properties of this object
def update!(**args)
@files = args[:files] unless args[:files].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@files = args[:files] if args.key?(:files)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1117,9 +1117,9 @@ module Google
# Update properties of this object
def update!(**args)
@ids = args[:ids] unless args[:ids].nil?
@kind = args[:kind] unless args[:kind].nil?
@space = args[:space] unless args[:space].nil?
@ids = args[:ids] if args.key?(:ids)
@kind = args[:kind] if args.key?(:kind)
@space = args[:space] if args.key?(:space)
end
end
@ -1190,15 +1190,15 @@ module Google
# Update properties of this object
def update!(**args)
@allow_file_discovery = args[:allow_file_discovery] unless args[:allow_file_discovery].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@domain = args[:domain] unless args[:domain].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@photo_link = args[:photo_link] unless args[:photo_link].nil?
@role = args[:role] unless args[:role].nil?
@type = args[:type] unless args[:type].nil?
@allow_file_discovery = args[:allow_file_discovery] if args.key?(:allow_file_discovery)
@display_name = args[:display_name] if args.key?(:display_name)
@domain = args[:domain] if args.key?(:domain)
@email_address = args[:email_address] if args.key?(:email_address)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@photo_link = args[:photo_link] if args.key?(:photo_link)
@role = args[:role] if args.key?(:role)
@type = args[:type] if args.key?(:type)
end
end
@ -1222,8 +1222,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@permissions = args[:permissions] unless args[:permissions].nil?
@kind = args[:kind] if args.key?(:kind)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -1287,15 +1287,15 @@ module Google
# Update properties of this object
def update!(**args)
@action = args[:action] unless args[:action].nil?
@author = args[:author] unless args[:author].nil?
@content = args[:content] unless args[:content].nil?
@created_time = args[:created_time] unless args[:created_time].nil?
@deleted = args[:deleted] unless args[:deleted].nil?
@html_content = args[:html_content] unless args[:html_content].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@modified_time = args[:modified_time] unless args[:modified_time].nil?
@action = args[:action] if args.key?(:action)
@author = args[:author] if args.key?(:author)
@content = args[:content] if args.key?(:content)
@created_time = args[:created_time] if args.key?(:created_time)
@deleted = args[:deleted] if args.key?(:deleted)
@html_content = args[:html_content] if args.key?(:html_content)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@modified_time = args[:modified_time] if args.key?(:modified_time)
end
end
@ -1325,9 +1325,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@replies = args[:replies] unless args[:replies].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@replies = args[:replies] if args.key?(:replies)
end
end
@ -1414,18 +1414,18 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@keep_forever = args[:keep_forever] unless args[:keep_forever].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil?
@md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@modified_time = args[:modified_time] unless args[:modified_time].nil?
@original_filename = args[:original_filename] unless args[:original_filename].nil?
@publish_auto = args[:publish_auto] unless args[:publish_auto].nil?
@published = args[:published] unless args[:published].nil?
@published_outside_domain = args[:published_outside_domain] unless args[:published_outside_domain].nil?
@size = args[:size] unless args[:size].nil?
@id = args[:id] if args.key?(:id)
@keep_forever = args[:keep_forever] if args.key?(:keep_forever)
@kind = args[:kind] if args.key?(:kind)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@modified_time = args[:modified_time] if args.key?(:modified_time)
@original_filename = args[:original_filename] if args.key?(:original_filename)
@publish_auto = args[:publish_auto] if args.key?(:publish_auto)
@published = args[:published] if args.key?(:published)
@published_outside_domain = args[:published_outside_domain] if args.key?(:published_outside_domain)
@size = args[:size] if args.key?(:size)
end
end
@ -1449,8 +1449,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@revisions = args[:revisions] unless args[:revisions].nil?
@kind = args[:kind] if args.key?(:kind)
@revisions = args[:revisions] if args.key?(:revisions)
end
end
@ -1474,8 +1474,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@start_page_token = args[:start_page_token] unless args[:start_page_token].nil?
@kind = args[:kind] if args.key?(:kind)
@start_page_token = args[:start_page_token] if args.key?(:start_page_token)
end
end
@ -1521,12 +1521,12 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email_address = args[:email_address] unless args[:email_address].nil?
@kind = args[:kind] unless args[:kind].nil?
@me = args[:me] unless args[:me].nil?
@permission_id = args[:permission_id] unless args[:permission_id].nil?
@photo_link = args[:photo_link] unless args[:photo_link].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email_address = args[:email_address] if args.key?(:email_address)
@kind = args[:kind] if args.key?(:kind)
@me = args[:me] if args.key?(:me)
@permission_id = args[:permission_id] if args.key?(:permission_id)
@photo_link = args[:photo_link] if args.key?(:photo_link)
end
end
end

View File

@ -64,12 +64,12 @@ module Google
# Update properties of this object
def update!(**args)
@activity = args[:activity] unless args[:activity].nil?
@dataset = args[:dataset] unless args[:dataset].nil?
@end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil?
@session = args[:session] unless args[:session].nil?
@start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
@type = args[:type] unless args[:type].nil?
@activity = args[:activity] if args.key?(:activity)
@dataset = args[:dataset] if args.key?(:dataset)
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
@session = args[:session] if args.key?(:session)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
@type = args[:type] if args.key?(:type)
end
end
@ -98,8 +98,8 @@ module Google
# Update properties of this object
def update!(**args)
@data_source_id = args[:data_source_id] unless args[:data_source_id].nil?
@data_type_name = args[:data_type_name] unless args[:data_type_name].nil?
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@data_type_name = args[:data_type_name] if args.key?(:data_type_name)
end
end
@ -163,13 +163,13 @@ module Google
# Update properties of this object
def update!(**args)
@aggregate_by = args[:aggregate_by] unless args[:aggregate_by].nil?
@bucket_by_activity_segment = args[:bucket_by_activity_segment] unless args[:bucket_by_activity_segment].nil?
@bucket_by_activity_type = args[:bucket_by_activity_type] unless args[:bucket_by_activity_type].nil?
@bucket_by_session = args[:bucket_by_session] unless args[:bucket_by_session].nil?
@bucket_by_time = args[:bucket_by_time] unless args[:bucket_by_time].nil?
@end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil?
@start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
@aggregate_by = args[:aggregate_by] if args.key?(:aggregate_by)
@bucket_by_activity_segment = args[:bucket_by_activity_segment] if args.key?(:bucket_by_activity_segment)
@bucket_by_activity_type = args[:bucket_by_activity_type] if args.key?(:bucket_by_activity_type)
@bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session)
@bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time)
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
end
end
@ -188,7 +188,7 @@ module Google
# Update properties of this object
def update!(**args)
@bucket = args[:bucket] unless args[:bucket].nil?
@bucket = args[:bucket] if args.key?(:bucket)
end
end
@ -229,10 +229,10 @@ module Google
# Update properties of this object
def update!(**args)
@details_url = args[:details_url] unless args[:details_url].nil?
@name = args[:name] unless args[:name].nil?
@package_name = args[:package_name] unless args[:package_name].nil?
@version = args[:version] unless args[:version].nil?
@details_url = args[:details_url] if args.key?(:details_url)
@name = args[:name] if args.key?(:name)
@package_name = args[:package_name] if args.key?(:package_name)
@version = args[:version] if args.key?(:version)
end
end
@ -258,8 +258,8 @@ module Google
# Update properties of this object
def update!(**args)
@activity_data_source_id = args[:activity_data_source_id] unless args[:activity_data_source_id].nil?
@min_duration_millis = args[:min_duration_millis] unless args[:min_duration_millis].nil?
@activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id)
@min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
end
end
@ -279,7 +279,7 @@ module Google
# Update properties of this object
def update!(**args)
@min_duration_millis = args[:min_duration_millis] unless args[:min_duration_millis].nil?
@min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis)
end
end
@ -300,7 +300,7 @@ module Google
# Update properties of this object
def update!(**args)
@duration_millis = args[:duration_millis] unless args[:duration_millis].nil?
@duration_millis = args[:duration_millis] if args.key?(:duration_millis)
end
end
@ -373,14 +373,14 @@ module Google
# Update properties of this object
def update!(**args)
@computation_time_millis = args[:computation_time_millis] unless args[:computation_time_millis].nil?
@data_type_name = args[:data_type_name] unless args[:data_type_name].nil?
@end_time_nanos = args[:end_time_nanos] unless args[:end_time_nanos].nil?
@modified_time_millis = args[:modified_time_millis] unless args[:modified_time_millis].nil?
@origin_data_source_id = args[:origin_data_source_id] unless args[:origin_data_source_id].nil?
@raw_timestamp_nanos = args[:raw_timestamp_nanos] unless args[:raw_timestamp_nanos].nil?
@start_time_nanos = args[:start_time_nanos] unless args[:start_time_nanos].nil?
@value = args[:value] unless args[:value].nil?
@computation_time_millis = args[:computation_time_millis] if args.key?(:computation_time_millis)
@data_type_name = args[:data_type_name] if args.key?(:data_type_name)
@end_time_nanos = args[:end_time_nanos] if args.key?(:end_time_nanos)
@modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
@origin_data_source_id = args[:origin_data_source_id] if args.key?(:origin_data_source_id)
@raw_timestamp_nanos = args[:raw_timestamp_nanos] if args.key?(:raw_timestamp_nanos)
@start_time_nanos = args[:start_time_nanos] if args.key?(:start_time_nanos)
@value = args[:value] if args.key?(:value)
end
end
@ -480,13 +480,13 @@ module Google
# Update properties of this object
def update!(**args)
@application = args[:application] unless args[:application].nil?
@data_stream_id = args[:data_stream_id] unless args[:data_stream_id].nil?
@data_stream_name = args[:data_stream_name] unless args[:data_stream_name].nil?
@data_type = args[:data_type] unless args[:data_type].nil?
@device = args[:device] unless args[:device].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@application = args[:application] if args.key?(:application)
@data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id)
@data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name)
@data_type = args[:data_type] if args.key?(:data_type)
@device = args[:device] if args.key?(:device)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
@ -511,8 +511,8 @@ module Google
# Update properties of this object
def update!(**args)
@field = args[:field] unless args[:field].nil?
@name = args[:name] unless args[:name].nil?
@field = args[:field] if args.key?(:field)
@name = args[:name] if args.key?(:name)
end
end
@ -548,9 +548,9 @@ module Google
# Update properties of this object
def update!(**args)
@format = args[:format] unless args[:format].nil?
@name = args[:name] unless args[:name].nil?
@optional = args[:optional] unless args[:optional].nil?
@format = args[:format] if args.key?(:format)
@name = args[:name] if args.key?(:name)
@optional = args[:optional] if args.key?(:optional)
end
end
@ -601,11 +601,11 @@ module Google
# Update properties of this object
def update!(**args)
@data_source_id = args[:data_source_id] unless args[:data_source_id].nil?
@max_end_time_ns = args[:max_end_time_ns] unless args[:max_end_time_ns].nil?
@min_start_time_ns = args[:min_start_time_ns] unless args[:min_start_time_ns].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@point = args[:point] unless args[:point].nil?
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns)
@min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@point = args[:point] if args.key?(:point)
end
end
@ -657,11 +657,11 @@ module Google
# Update properties of this object
def update!(**args)
@manufacturer = args[:manufacturer] unless args[:manufacturer].nil?
@model = args[:model] unless args[:model].nil?
@type = args[:type] unless args[:type].nil?
@uid = args[:uid] unless args[:uid].nil?
@version = args[:version] unless args[:version].nil?
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@model = args[:model] if args.key?(:model)
@type = args[:type] if args.key?(:type)
@uid = args[:uid] if args.key?(:uid)
@version = args[:version] if args.key?(:version)
end
end
@ -680,7 +680,7 @@ module Google
# Update properties of this object
def update!(**args)
@data_source = args[:data_source] unless args[:data_source].nil?
@data_source = args[:data_source] if args.key?(:data_source)
end
end
@ -712,9 +712,9 @@ module Google
# Update properties of this object
def update!(**args)
@deleted_session = args[:deleted_session] unless args[:deleted_session].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@session = args[:session] unless args[:session].nil?
@deleted_session = args[:deleted_session] if args.key?(:deleted_session)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@session = args[:session] if args.key?(:session)
end
end
@ -734,7 +734,7 @@ module Google
# Update properties of this object
def update!(**args)
@fp_val = args[:fp_val] unless args[:fp_val].nil?
@fp_val = args[:fp_val] if args.key?(:fp_val)
end
end
@ -799,15 +799,15 @@ module Google
# Update properties of this object
def update!(**args)
@active_time_millis = args[:active_time_millis] unless args[:active_time_millis].nil?
@activity_type = args[:activity_type] unless args[:activity_type].nil?
@application = args[:application] unless args[:application].nil?
@description = args[:description] unless args[:description].nil?
@end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil?
@id = args[:id] unless args[:id].nil?
@modified_time_millis = args[:modified_time_millis] unless args[:modified_time_millis].nil?
@name = args[:name] unless args[:name].nil?
@start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil?
@active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis)
@activity_type = args[:activity_type] if args.key?(:activity_type)
@application = args[:application] if args.key?(:application)
@description = args[:description] if args.key?(:description)
@end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
@id = args[:id] if args.key?(:id)
@modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis)
@name = args[:name] if args.key?(:name)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
end
end
@ -848,10 +848,10 @@ module Google
# Update properties of this object
def update!(**args)
@fp_val = args[:fp_val] unless args[:fp_val].nil?
@int_val = args[:int_val] unless args[:int_val].nil?
@map_val = args[:map_val] unless args[:map_val].nil?
@string_val = args[:string_val] unless args[:string_val].nil?
@fp_val = args[:fp_val] if args.key?(:fp_val)
@int_val = args[:int_val] if args.key?(:int_val)
@map_val = args[:map_val] if args.key?(:map_val)
@string_val = args[:string_val] if args.key?(:string_val)
end
end
@ -876,8 +876,8 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end

View File

@ -65,12 +65,12 @@ module Google
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@icon = args[:icon] unless args[:icon].nil?
@max = args[:max] unless args[:max].nil?
@min = args[:min] unless args[:min].nil?
@opacity = args[:opacity] unless args[:opacity].nil?
@weight = args[:weight] unless args[:weight].nil?
@color = args[:color] if args.key?(:color)
@icon = args[:icon] if args.key?(:icon)
@max = args[:max] if args.key?(:max)
@min = args[:min] if args.key?(:min)
@opacity = args[:opacity] if args.key?(:opacity)
@weight = args[:weight] if args.key?(:weight)
end
end
@ -171,18 +171,18 @@ module Google
# Update properties of this object
def update!(**args)
@base_column = args[:base_column] unless args[:base_column].nil?
@column_id = args[:column_id] unless args[:column_id].nil?
@column_json_schema = args[:column_json_schema] unless args[:column_json_schema].nil?
@column_properties_json = args[:column_properties_json] unless args[:column_properties_json].nil?
@description = args[:description] unless args[:description].nil?
@format_pattern = args[:format_pattern] unless args[:format_pattern].nil?
@graph_predicate = args[:graph_predicate] unless args[:graph_predicate].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@valid_values = args[:valid_values] unless args[:valid_values].nil?
@validate_data = args[:validate_data] unless args[:validate_data].nil?
@base_column = args[:base_column] if args.key?(:base_column)
@column_id = args[:column_id] if args.key?(:column_id)
@column_json_schema = args[:column_json_schema] if args.key?(:column_json_schema)
@column_properties_json = args[:column_properties_json] if args.key?(:column_properties_json)
@description = args[:description] if args.key?(:description)
@format_pattern = args[:format_pattern] if args.key?(:format_pattern)
@graph_predicate = args[:graph_predicate] if args.key?(:graph_predicate)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@valid_values = args[:valid_values] if args.key?(:valid_values)
@validate_data = args[:validate_data] if args.key?(:validate_data)
end
# Identifier of the base column. If present, this column is derived from the
@ -206,8 +206,8 @@ module Google
# Update properties of this object
def update!(**args)
@column_id = args[:column_id] unless args[:column_id].nil?
@table_index = args[:table_index] unless args[:table_index].nil?
@column_id = args[:column_id] if args.key?(:column_id)
@table_index = args[:table_index] if args.key?(:table_index)
end
end
end
@ -244,10 +244,10 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
@ -276,9 +276,9 @@ module Google
# Update properties of this object
def update!(**args)
@geometries = args[:geometries] unless args[:geometries].nil?
@geometry = args[:geometry] unless args[:geometry].nil?
@type = args[:type] unless args[:type].nil?
@geometries = args[:geometries] if args.key?(:geometries)
@geometry = args[:geometry] if args.key?(:geometry)
@type = args[:type] if args.key?(:type)
end
end
@ -302,8 +302,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@num_rows_received = args[:num_rows_received] unless args[:num_rows_received].nil?
@kind = args[:kind] if args.key?(:kind)
@num_rows_received = args[:num_rows_received] if args.key?(:num_rows_received)
end
end
@ -327,8 +327,8 @@ module Google
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
@coordinates = args[:coordinates] if args.key?(:coordinates)
@type = args[:type] if args.key?(:type)
end
end
@ -367,11 +367,11 @@ module Google
# Update properties of this object
def update!(**args)
@stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
@stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
@stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
@stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
@stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
@stroke_color = args[:stroke_color] if args.key?(:stroke_color)
@stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler)
@stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity)
@stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight)
@stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler)
end
end
@ -395,8 +395,8 @@ module Google
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
@coordinates = args[:coordinates] if args.key?(:coordinates)
@type = args[:type] if args.key?(:type)
end
end
@ -421,8 +421,8 @@ module Google
# Update properties of this object
def update!(**args)
@icon_name = args[:icon_name] unless args[:icon_name].nil?
@icon_styler = args[:icon_styler] unless args[:icon_styler].nil?
@icon_name = args[:icon_name] if args.key?(:icon_name)
@icon_styler = args[:icon_styler] if args.key?(:icon_styler)
end
end
@ -446,8 +446,8 @@ module Google
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
@coordinates = args[:coordinates] if args.key?(:coordinates)
@type = args[:type] if args.key?(:type)
end
end
@ -501,14 +501,14 @@ module Google
# Update properties of this object
def update!(**args)
@fill_color = args[:fill_color] unless args[:fill_color].nil?
@fill_color_styler = args[:fill_color_styler] unless args[:fill_color_styler].nil?
@fill_opacity = args[:fill_opacity] unless args[:fill_opacity].nil?
@stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
@stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
@stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
@stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
@stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
@fill_color = args[:fill_color] if args.key?(:fill_color)
@fill_color_styler = args[:fill_color_styler] if args.key?(:fill_color_styler)
@fill_opacity = args[:fill_opacity] if args.key?(:fill_opacity)
@stroke_color = args[:stroke_color] if args.key?(:stroke_color)
@stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler)
@stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity)
@stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight)
@stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler)
end
end
@ -540,9 +540,9 @@ module Google
# Update properties of this object
def update!(**args)
@columns = args[:columns] unless args[:columns].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
@columns = args[:columns] if args.key?(:columns)
@kind = args[:kind] if args.key?(:kind)
@rows = args[:rows] if args.key?(:rows)
end
end
@ -582,10 +582,10 @@ module Google
# Update properties of this object
def update!(**args)
@buckets = args[:buckets] unless args[:buckets].nil?
@column_name = args[:column_name] unless args[:column_name].nil?
@gradient = args[:gradient] unless args[:gradient].nil?
@kind = args[:kind] unless args[:kind].nil?
@buckets = args[:buckets] if args.key?(:buckets)
@column_name = args[:column_name] if args.key?(:column_name)
@gradient = args[:gradient] if args.key?(:gradient)
@kind = args[:kind] if args.key?(:kind)
end
# Gradient function that interpolates a range of colors based on column value.
@ -615,9 +615,9 @@ module Google
# Update properties of this object
def update!(**args)
@colors = args[:colors] unless args[:colors].nil?
@max = args[:max] unless args[:max].nil?
@min = args[:min] unless args[:min].nil?
@colors = args[:colors] if args.key?(:colors)
@max = args[:max] if args.key?(:max)
@min = args[:min] if args.key?(:min)
end
#
@ -640,8 +640,8 @@ module Google
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@opacity = args[:opacity] unless args[:opacity].nil?
@color = args[:color] if args.key?(:color)
@opacity = args[:opacity] if args.key?(:opacity)
end
end
end
@ -695,13 +695,13 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@marker_options = args[:marker_options] unless args[:marker_options].nil?
@name = args[:name] unless args[:name].nil?
@polygon_options = args[:polygon_options] unless args[:polygon_options].nil?
@polyline_options = args[:polyline_options] unless args[:polyline_options].nil?
@style_id = args[:style_id] unless args[:style_id].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@kind = args[:kind] if args.key?(:kind)
@marker_options = args[:marker_options] if args.key?(:marker_options)
@name = args[:name] if args.key?(:name)
@polygon_options = args[:polygon_options] if args.key?(:polygon_options)
@polyline_options = args[:polyline_options] if args.key?(:polyline_options)
@style_id = args[:style_id] if args.key?(:style_id)
@table_id = args[:table_id] if args.key?(:table_id)
end
end
@ -737,10 +737,10 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
@ -820,19 +820,19 @@ module Google
# Update properties of this object
def update!(**args)
@attribution = args[:attribution] unless args[:attribution].nil?
@attribution_link = args[:attribution_link] unless args[:attribution_link].nil?
@base_table_ids = args[:base_table_ids] unless args[:base_table_ids].nil?
@column_properties_json_schema = args[:column_properties_json_schema] unless args[:column_properties_json_schema].nil?
@columns = args[:columns] unless args[:columns].nil?
@description = args[:description] unless args[:description].nil?
@is_exportable = args[:is_exportable] unless args[:is_exportable].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@sql = args[:sql] unless args[:sql].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@table_properties_json = args[:table_properties_json] unless args[:table_properties_json].nil?
@table_properties_json_schema = args[:table_properties_json_schema] unless args[:table_properties_json_schema].nil?
@attribution = args[:attribution] if args.key?(:attribution)
@attribution_link = args[:attribution_link] if args.key?(:attribution_link)
@base_table_ids = args[:base_table_ids] if args.key?(:base_table_ids)
@column_properties_json_schema = args[:column_properties_json_schema] if args.key?(:column_properties_json_schema)
@columns = args[:columns] if args.key?(:columns)
@description = args[:description] if args.key?(:description)
@is_exportable = args[:is_exportable] if args.key?(:is_exportable)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@sql = args[:sql] if args.key?(:sql)
@table_id = args[:table_id] if args.key?(:table_id)
@table_properties_json = args[:table_properties_json] if args.key?(:table_properties_json)
@table_properties_json_schema = args[:table_properties_json_schema] if args.key?(:table_properties_json_schema)
end
end
@ -863,9 +863,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -907,11 +907,11 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@progress = args[:progress] unless args[:progress].nil?
@started = args[:started] unless args[:started].nil?
@task_id = args[:task_id] unless args[:task_id].nil?
@type = args[:type] unless args[:type].nil?
@kind = args[:kind] if args.key?(:kind)
@progress = args[:progress] if args.key?(:progress)
@started = args[:started] if args.key?(:started)
@task_id = args[:task_id] if args.key?(:task_id)
@type = args[:type] if args.key?(:type)
end
end
@ -946,10 +946,10 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
@ -996,12 +996,12 @@ module Google
# Update properties of this object
def update!(**args)
@automatic_column_names = args[:automatic_column_names] unless args[:automatic_column_names].nil?
@body = args[:body] unless args[:body].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@template_id = args[:template_id] unless args[:template_id].nil?
@automatic_column_names = args[:automatic_column_names] if args.key?(:automatic_column_names)
@body = args[:body] if args.key?(:body)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@table_id = args[:table_id] if args.key?(:table_id)
@template_id = args[:template_id] if args.key?(:template_id)
end
end
@ -1037,10 +1037,10 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20160119'
REVISION = '20160120'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -80,14 +80,14 @@ module Google
# Update properties of this object
def update!(**args)
@achievement_type = args[:achievement_type] unless args[:achievement_type].nil?
@draft = args[:draft] unless args[:draft].nil?
@id = args[:id] unless args[:id].nil?
@initial_state = args[:initial_state] unless args[:initial_state].nil?
@kind = args[:kind] unless args[:kind].nil?
@published = args[:published] unless args[:published].nil?
@steps_to_unlock = args[:steps_to_unlock] unless args[:steps_to_unlock].nil?
@token = args[:token] unless args[:token].nil?
@achievement_type = args[:achievement_type] if args.key?(:achievement_type)
@draft = args[:draft] if args.key?(:draft)
@id = args[:id] if args.key?(:id)
@initial_state = args[:initial_state] if args.key?(:initial_state)
@kind = args[:kind] if args.key?(:kind)
@published = args[:published] if args.key?(:published)
@steps_to_unlock = args[:steps_to_unlock] if args.key?(:steps_to_unlock)
@token = args[:token] if args.key?(:token)
end
end
@ -132,12 +132,12 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@icon_url = args[:icon_url] unless args[:icon_url].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@point_value = args[:point_value] unless args[:point_value].nil?
@sort_rank = args[:sort_rank] unless args[:sort_rank].nil?
@description = args[:description] if args.key?(:description)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@point_value = args[:point_value] if args.key?(:point_value)
@sort_rank = args[:sort_rank] if args.key?(:sort_rank)
end
end
@ -167,9 +167,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -213,12 +213,12 @@ module Google
# Update properties of this object
def update!(**args)
@few = args[:few] unless args[:few].nil?
@many = args[:many] unless args[:many].nil?
@one = args[:one] unless args[:one].nil?
@other = args[:other] unless args[:other].nil?
@two = args[:two] unless args[:two].nil?
@zero = args[:zero] unless args[:zero].nil?
@few = args[:few] if args.key?(:few)
@many = args[:many] if args.key?(:many)
@one = args[:one] if args.key?(:one)
@other = args[:other] if args.key?(:other)
@two = args[:two] if args.key?(:two)
@zero = args[:zero] if args.key?(:zero)
end
end
@ -258,10 +258,10 @@ module Google
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@num_decimal_places = args[:num_decimal_places] unless args[:num_decimal_places].nil?
@number_format_type = args[:number_format_type] unless args[:number_format_type].nil?
@suffix = args[:suffix] unless args[:suffix].nil?
@currency_code = args[:currency_code] if args.key?(:currency_code)
@num_decimal_places = args[:num_decimal_places] if args.key?(:num_decimal_places)
@number_format_type = args[:number_format_type] if args.key?(:number_format_type)
@suffix = args[:suffix] if args.key?(:suffix)
end
end
@ -296,10 +296,10 @@ module Google
# Update properties of this object
def update!(**args)
@image_type = args[:image_type] unless args[:image_type].nil?
@kind = args[:kind] unless args[:kind].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@url = args[:url] unless args[:url].nil?
@image_type = args[:image_type] if args.key?(:image_type)
@kind = args[:kind] if args.key?(:kind)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@url = args[:url] if args.key?(:url)
end
end
@ -357,14 +357,14 @@ module Google
# Update properties of this object
def update!(**args)
@draft = args[:draft] unless args[:draft].nil?
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@published = args[:published] unless args[:published].nil?
@score_max = args[:score_max] unless args[:score_max].nil?
@score_min = args[:score_min] unless args[:score_min].nil?
@score_order = args[:score_order] unless args[:score_order].nil?
@token = args[:token] unless args[:token].nil?
@draft = args[:draft] if args.key?(:draft)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@published = args[:published] if args.key?(:published)
@score_max = args[:score_max] if args.key?(:score_max)
@score_min = args[:score_min] if args.key?(:score_min)
@score_order = args[:score_order] if args.key?(:score_order)
@token = args[:token] if args.key?(:token)
end
end
@ -404,11 +404,11 @@ module Google
# Update properties of this object
def update!(**args)
@icon_url = args[:icon_url] unless args[:icon_url].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@score_format = args[:score_format] unless args[:score_format].nil?
@sort_rank = args[:sort_rank] unless args[:sort_rank].nil?
@icon_url = args[:icon_url] if args.key?(:icon_url)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@score_format = args[:score_format] if args.key?(:score_format)
@sort_rank = args[:sort_rank] if args.key?(:sort_rank)
end
end
@ -438,9 +438,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -470,9 +470,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@locale = args[:locale] unless args[:locale].nil?
@value = args[:value] unless args[:value].nil?
@kind = args[:kind] if args.key?(:kind)
@locale = args[:locale] if args.key?(:locale)
@value = args[:value] if args.key?(:value)
end
end
@ -497,8 +497,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@translations = args[:translations] unless args[:translations].nil?
@kind = args[:kind] if args.key?(:kind)
@translations = args[:translations] if args.key?(:translations)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20160119'
REVISION = '20160120'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -43,8 +43,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@results = args[:results] unless args[:results].nil?
@kind = args[:kind] if args.key?(:kind)
@results = args[:results] if args.key?(:results)
end
end
@ -69,8 +69,8 @@ module Google
# Update properties of this object
def update!(**args)
@achievement_ids = args[:achievement_ids] unless args[:achievement_ids].nil?
@kind = args[:kind] unless args[:kind].nil?
@achievement_ids = args[:achievement_ids] if args.key?(:achievement_ids)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -111,10 +111,10 @@ module Google
# Update properties of this object
def update!(**args)
@current_state = args[:current_state] unless args[:current_state].nil?
@definition_id = args[:definition_id] unless args[:definition_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@update_occurred = args[:update_occurred] unless args[:update_occurred].nil?
@current_state = args[:current_state] if args.key?(:current_state)
@definition_id = args[:definition_id] if args.key?(:definition_id)
@kind = args[:kind] if args.key?(:kind)
@update_occurred = args[:update_occurred] if args.key?(:update_occurred)
end
end
@ -139,8 +139,8 @@ module Google
# Update properties of this object
def update!(**args)
@event_ids = args[:event_ids] unless args[:event_ids].nil?
@kind = args[:kind] unless args[:kind].nil?
@event_ids = args[:event_ids] if args.key?(:event_ids)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -167,8 +167,8 @@ module Google
# Update properties of this object
def update!(**args)
@auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
@time_millis = args[:time_millis] unless args[:time_millis].nil?
@auto_matched = args[:auto_matched] if args.key?(:auto_matched)
@time_millis = args[:time_millis] if args.key?(:time_millis)
end
end
@ -202,10 +202,10 @@ module Google
# Update properties of this object
def update!(**args)
@current_experience_points = args[:current_experience_points] unless args[:current_experience_points].nil?
@current_level = args[:current_level] unless args[:current_level].nil?
@last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] unless args[:last_level_up_timestamp_millis].nil?
@next_level = args[:next_level] unless args[:next_level].nil?
@current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points)
@current_level = args[:current_level] if args.key?(:current_level)
@last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis)
@next_level = args[:next_level] if args.key?(:next_level)
end
end
@ -234,9 +234,9 @@ module Google
# Update properties of this object
def update!(**args)
@level = args[:level] unless args[:level].nil?
@max_experience_points = args[:max_experience_points] unless args[:max_experience_points].nil?
@min_experience_points = args[:min_experience_points] unless args[:min_experience_points].nil?
@level = args[:level] if args.key?(:level)
@max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points)
@min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points)
end
end
@ -266,9 +266,9 @@ module Google
# Update properties of this object
def update!(**args)
@hidden_time_millis = args[:hidden_time_millis] unless args[:hidden_time_millis].nil?
@kind = args[:kind] unless args[:kind].nil?
@player = args[:player] unless args[:player].nil?
@hidden_time_millis = args[:hidden_time_millis] if args.key?(:hidden_time_millis)
@kind = args[:kind] if args.key?(:kind)
@player = args[:player] if args.key?(:player)
end
end
@ -298,9 +298,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -367,16 +367,16 @@ module Google
# Update properties of this object
def update!(**args)
@avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil?
@banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil?
@banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@experience_info = args[:experience_info] unless args[:experience_info].nil?
@kind = args[:kind] unless args[:kind].nil?
@last_played_with = args[:last_played_with] unless args[:last_played_with].nil?
@name = args[:name] unless args[:name].nil?
@player_id = args[:player_id] unless args[:player_id].nil?
@title = args[:title] unless args[:title].nil?
@avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url)
@banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape)
@banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait)
@display_name = args[:display_name] if args.key?(:display_name)
@experience_info = args[:experience_info] if args.key?(:experience_info)
@kind = args[:kind] if args.key?(:kind)
@last_played_with = args[:last_played_with] if args.key?(:last_played_with)
@name = args[:name] if args.key?(:name)
@player_id = args[:player_id] if args.key?(:player_id)
@title = args[:title] if args.key?(:title)
end
# An object representation of the individual components of the player's name.
@ -400,8 +400,8 @@ module Google
# Update properties of this object
def update!(**args)
@family_name = args[:family_name] unless args[:family_name].nil?
@given_name = args[:given_name] unless args[:given_name].nil?
@family_name = args[:family_name] if args.key?(:family_name)
@given_name = args[:given_name] if args.key?(:given_name)
end
end
end
@ -427,8 +427,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@results = args[:results] unless args[:results].nil?
@kind = args[:kind] if args.key?(:kind)
@results = args[:results] if args.key?(:results)
end
end
@ -462,9 +462,9 @@ module Google
# Update properties of this object
def update!(**args)
@definition_id = args[:definition_id] unless args[:definition_id].nil?
@kind = args[:kind] unless args[:kind].nil?
@reset_score_time_spans = args[:reset_score_time_spans] unless args[:reset_score_time_spans].nil?
@definition_id = args[:definition_id] if args.key?(:definition_id)
@kind = args[:kind] if args.key?(:kind)
@reset_score_time_spans = args[:reset_score_time_spans] if args.key?(:reset_score_time_spans)
end
end
@ -489,8 +489,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@quest_ids = args[:quest_ids] unless args[:quest_ids].nil?
@kind = args[:kind] if args.key?(:kind)
@quest_ids = args[:quest_ids] if args.key?(:quest_ids)
end
end
@ -515,8 +515,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@leaderboard_ids = args[:leaderboard_ids] unless args[:leaderboard_ids].nil?
@kind = args[:kind] if args.key?(:kind)
@leaderboard_ids = args[:leaderboard_ids] if args.key?(:leaderboard_ids)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20160119'
REVISION = '20160120'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

File diff suppressed because it is too large Load Diff

View File

@ -145,27 +145,27 @@ module Google
# Update properties of this object
def update!(**args)
@allow_publisher_created_links = args[:allow_publisher_created_links] unless args[:allow_publisher_created_links].nil?
@category = args[:category] unless args[:category].nil?
@commission_duration = args[:commission_duration] unless args[:commission_duration].nil?
@contact_email = args[:contact_email] unless args[:contact_email].nil?
@contact_phone = args[:contact_phone] unless args[:contact_phone].nil?
@default_link_id = args[:default_link_id] unless args[:default_link_id].nil?
@description = args[:description] unless args[:description].nil?
@epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil?
@epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil?
@id = args[:id] unless args[:id].nil?
@item = args[:item] unless args[:item].nil?
@join_date = args[:join_date] unless args[:join_date].nil?
@kind = args[:kind] unless args[:kind].nil?
@logo_url = args[:logo_url] unless args[:logo_url].nil?
@merchant_center_ids = args[:merchant_center_ids] unless args[:merchant_center_ids].nil?
@name = args[:name] unless args[:name].nil?
@payout_rank = args[:payout_rank] unless args[:payout_rank].nil?
@product_feeds_enabled = args[:product_feeds_enabled] unless args[:product_feeds_enabled].nil?
@redirect_domains = args[:redirect_domains] unless args[:redirect_domains].nil?
@site_url = args[:site_url] unless args[:site_url].nil?
@status = args[:status] unless args[:status].nil?
@allow_publisher_created_links = args[:allow_publisher_created_links] if args.key?(:allow_publisher_created_links)
@category = args[:category] if args.key?(:category)
@commission_duration = args[:commission_duration] if args.key?(:commission_duration)
@contact_email = args[:contact_email] if args.key?(:contact_email)
@contact_phone = args[:contact_phone] if args.key?(:contact_phone)
@default_link_id = args[:default_link_id] if args.key?(:default_link_id)
@description = args[:description] if args.key?(:description)
@epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average)
@epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average)
@id = args[:id] if args.key?(:id)
@item = args[:item] if args.key?(:item)
@join_date = args[:join_date] if args.key?(:join_date)
@kind = args[:kind] if args.key?(:kind)
@logo_url = args[:logo_url] if args.key?(:logo_url)
@merchant_center_ids = args[:merchant_center_ids] if args.key?(:merchant_center_ids)
@name = args[:name] if args.key?(:name)
@payout_rank = args[:payout_rank] if args.key?(:payout_rank)
@product_feeds_enabled = args[:product_feeds_enabled] if args.key?(:product_feeds_enabled)
@redirect_domains = args[:redirect_domains] if args.key?(:redirect_domains)
@site_url = args[:site_url] if args.key?(:site_url)
@status = args[:status] if args.key?(:status)
end
end
@ -195,9 +195,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -559,69 +559,69 @@ module Google
# Update properties of this object
def update!(**args)
@additional_card_benefits = args[:additional_card_benefits] unless args[:additional_card_benefits].nil?
@additional_card_holder_fee = args[:additional_card_holder_fee] unless args[:additional_card_holder_fee].nil?
@age_minimum = args[:age_minimum] unless args[:age_minimum].nil?
@age_minimum_details = args[:age_minimum_details] unless args[:age_minimum_details].nil?
@annual_fee = args[:annual_fee] unless args[:annual_fee].nil?
@annual_fee_display = args[:annual_fee_display] unless args[:annual_fee_display].nil?
@annual_reward_maximum = args[:annual_reward_maximum] unless args[:annual_reward_maximum].nil?
@approved_categories = args[:approved_categories] unless args[:approved_categories].nil?
@apr_display = args[:apr_display] unless args[:apr_display].nil?
@balance_computation_method = args[:balance_computation_method] unless args[:balance_computation_method].nil?
@balance_transfer_terms = args[:balance_transfer_terms] unless args[:balance_transfer_terms].nil?
@bonus_rewards = args[:bonus_rewards] unless args[:bonus_rewards].nil?
@car_rental_insurance = args[:car_rental_insurance] unless args[:car_rental_insurance].nil?
@card_benefits = args[:card_benefits] unless args[:card_benefits].nil?
@card_name = args[:card_name] unless args[:card_name].nil?
@card_type = args[:card_type] unless args[:card_type].nil?
@cash_advance_terms = args[:cash_advance_terms] unless args[:cash_advance_terms].nil?
@credit_limit_max = args[:credit_limit_max] unless args[:credit_limit_max].nil?
@credit_limit_min = args[:credit_limit_min] unless args[:credit_limit_min].nil?
@credit_rating_display = args[:credit_rating_display] unless args[:credit_rating_display].nil?
@default_fees = args[:default_fees] unless args[:default_fees].nil?
@disclaimer = args[:disclaimer] unless args[:disclaimer].nil?
@emergency_insurance = args[:emergency_insurance] unless args[:emergency_insurance].nil?
@existing_customer_only = args[:existing_customer_only] unless args[:existing_customer_only].nil?
@extended_warranty = args[:extended_warranty] unless args[:extended_warranty].nil?
@first_year_annual_fee = args[:first_year_annual_fee] unless args[:first_year_annual_fee].nil?
@flight_accident_insurance = args[:flight_accident_insurance] unless args[:flight_accident_insurance].nil?
@foreign_currency_transaction_fee = args[:foreign_currency_transaction_fee] unless args[:foreign_currency_transaction_fee].nil?
@fraud_liability = args[:fraud_liability] unless args[:fraud_liability].nil?
@grace_period_display = args[:grace_period_display] unless args[:grace_period_display].nil?
@image_url = args[:image_url] unless args[:image_url].nil?
@initial_setup_and_processing_fee = args[:initial_setup_and_processing_fee] unless args[:initial_setup_and_processing_fee].nil?
@intro_balance_transfer_terms = args[:intro_balance_transfer_terms] unless args[:intro_balance_transfer_terms].nil?
@intro_cash_advance_terms = args[:intro_cash_advance_terms] unless args[:intro_cash_advance_terms].nil?
@intro_purchase_terms = args[:intro_purchase_terms] unless args[:intro_purchase_terms].nil?
@issuer = args[:issuer] unless args[:issuer].nil?
@issuer_id = args[:issuer_id] unless args[:issuer_id].nil?
@issuer_website = args[:issuer_website] unless args[:issuer_website].nil?
@kind = args[:kind] unless args[:kind].nil?
@landing_page_url = args[:landing_page_url] unless args[:landing_page_url].nil?
@late_payment_fee = args[:late_payment_fee] unless args[:late_payment_fee].nil?
@luggage_insurance = args[:luggage_insurance] unless args[:luggage_insurance].nil?
@max_purchase_rate = args[:max_purchase_rate] unless args[:max_purchase_rate].nil?
@min_purchase_rate = args[:min_purchase_rate] unless args[:min_purchase_rate].nil?
@minimum_finance_charge = args[:minimum_finance_charge] unless args[:minimum_finance_charge].nil?
@network = args[:network] unless args[:network].nil?
@offer_id = args[:offer_id] unless args[:offer_id].nil?
@offers_immediate_cash_reward = args[:offers_immediate_cash_reward] unless args[:offers_immediate_cash_reward].nil?
@over_limit_fee = args[:over_limit_fee] unless args[:over_limit_fee].nil?
@prohibited_categories = args[:prohibited_categories] unless args[:prohibited_categories].nil?
@purchase_rate_additional_details = args[:purchase_rate_additional_details] unless args[:purchase_rate_additional_details].nil?
@purchase_rate_type = args[:purchase_rate_type] unless args[:purchase_rate_type].nil?
@returned_payment_fee = args[:returned_payment_fee] unless args[:returned_payment_fee].nil?
@reward_partner = args[:reward_partner] unless args[:reward_partner].nil?
@reward_unit = args[:reward_unit] unless args[:reward_unit].nil?
@rewards = args[:rewards] unless args[:rewards].nil?
@rewards_expire = args[:rewards_expire] unless args[:rewards_expire].nil?
@rewards_have_blackout_dates = args[:rewards_have_blackout_dates] unless args[:rewards_have_blackout_dates].nil?
@statement_copy_fee = args[:statement_copy_fee] unless args[:statement_copy_fee].nil?
@tracking_url = args[:tracking_url] unless args[:tracking_url].nil?
@travel_insurance = args[:travel_insurance] unless args[:travel_insurance].nil?
@variable_rates_last_updated = args[:variable_rates_last_updated] unless args[:variable_rates_last_updated].nil?
@variable_rates_update_frequency = args[:variable_rates_update_frequency] unless args[:variable_rates_update_frequency].nil?
@additional_card_benefits = args[:additional_card_benefits] if args.key?(:additional_card_benefits)
@additional_card_holder_fee = args[:additional_card_holder_fee] if args.key?(:additional_card_holder_fee)
@age_minimum = args[:age_minimum] if args.key?(:age_minimum)
@age_minimum_details = args[:age_minimum_details] if args.key?(:age_minimum_details)
@annual_fee = args[:annual_fee] if args.key?(:annual_fee)
@annual_fee_display = args[:annual_fee_display] if args.key?(:annual_fee_display)
@annual_reward_maximum = args[:annual_reward_maximum] if args.key?(:annual_reward_maximum)
@approved_categories = args[:approved_categories] if args.key?(:approved_categories)
@apr_display = args[:apr_display] if args.key?(:apr_display)
@balance_computation_method = args[:balance_computation_method] if args.key?(:balance_computation_method)
@balance_transfer_terms = args[:balance_transfer_terms] if args.key?(:balance_transfer_terms)
@bonus_rewards = args[:bonus_rewards] if args.key?(:bonus_rewards)
@car_rental_insurance = args[:car_rental_insurance] if args.key?(:car_rental_insurance)
@card_benefits = args[:card_benefits] if args.key?(:card_benefits)
@card_name = args[:card_name] if args.key?(:card_name)
@card_type = args[:card_type] if args.key?(:card_type)
@cash_advance_terms = args[:cash_advance_terms] if args.key?(:cash_advance_terms)
@credit_limit_max = args[:credit_limit_max] if args.key?(:credit_limit_max)
@credit_limit_min = args[:credit_limit_min] if args.key?(:credit_limit_min)
@credit_rating_display = args[:credit_rating_display] if args.key?(:credit_rating_display)
@default_fees = args[:default_fees] if args.key?(:default_fees)
@disclaimer = args[:disclaimer] if args.key?(:disclaimer)
@emergency_insurance = args[:emergency_insurance] if args.key?(:emergency_insurance)
@existing_customer_only = args[:existing_customer_only] if args.key?(:existing_customer_only)
@extended_warranty = args[:extended_warranty] if args.key?(:extended_warranty)
@first_year_annual_fee = args[:first_year_annual_fee] if args.key?(:first_year_annual_fee)
@flight_accident_insurance = args[:flight_accident_insurance] if args.key?(:flight_accident_insurance)
@foreign_currency_transaction_fee = args[:foreign_currency_transaction_fee] if args.key?(:foreign_currency_transaction_fee)
@fraud_liability = args[:fraud_liability] if args.key?(:fraud_liability)
@grace_period_display = args[:grace_period_display] if args.key?(:grace_period_display)
@image_url = args[:image_url] if args.key?(:image_url)
@initial_setup_and_processing_fee = args[:initial_setup_and_processing_fee] if args.key?(:initial_setup_and_processing_fee)
@intro_balance_transfer_terms = args[:intro_balance_transfer_terms] if args.key?(:intro_balance_transfer_terms)
@intro_cash_advance_terms = args[:intro_cash_advance_terms] if args.key?(:intro_cash_advance_terms)
@intro_purchase_terms = args[:intro_purchase_terms] if args.key?(:intro_purchase_terms)
@issuer = args[:issuer] if args.key?(:issuer)
@issuer_id = args[:issuer_id] if args.key?(:issuer_id)
@issuer_website = args[:issuer_website] if args.key?(:issuer_website)
@kind = args[:kind] if args.key?(:kind)
@landing_page_url = args[:landing_page_url] if args.key?(:landing_page_url)
@late_payment_fee = args[:late_payment_fee] if args.key?(:late_payment_fee)
@luggage_insurance = args[:luggage_insurance] if args.key?(:luggage_insurance)
@max_purchase_rate = args[:max_purchase_rate] if args.key?(:max_purchase_rate)
@min_purchase_rate = args[:min_purchase_rate] if args.key?(:min_purchase_rate)
@minimum_finance_charge = args[:minimum_finance_charge] if args.key?(:minimum_finance_charge)
@network = args[:network] if args.key?(:network)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@offers_immediate_cash_reward = args[:offers_immediate_cash_reward] if args.key?(:offers_immediate_cash_reward)
@over_limit_fee = args[:over_limit_fee] if args.key?(:over_limit_fee)
@prohibited_categories = args[:prohibited_categories] if args.key?(:prohibited_categories)
@purchase_rate_additional_details = args[:purchase_rate_additional_details] if args.key?(:purchase_rate_additional_details)
@purchase_rate_type = args[:purchase_rate_type] if args.key?(:purchase_rate_type)
@returned_payment_fee = args[:returned_payment_fee] if args.key?(:returned_payment_fee)
@reward_partner = args[:reward_partner] if args.key?(:reward_partner)
@reward_unit = args[:reward_unit] if args.key?(:reward_unit)
@rewards = args[:rewards] if args.key?(:rewards)
@rewards_expire = args[:rewards_expire] if args.key?(:rewards_expire)
@rewards_have_blackout_dates = args[:rewards_have_blackout_dates] if args.key?(:rewards_have_blackout_dates)
@statement_copy_fee = args[:statement_copy_fee] if args.key?(:statement_copy_fee)
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
@travel_insurance = args[:travel_insurance] if args.key?(:travel_insurance)
@variable_rates_last_updated = args[:variable_rates_last_updated] if args.key?(:variable_rates_last_updated)
@variable_rates_update_frequency = args[:variable_rates_update_frequency] if args.key?(:variable_rates_update_frequency)
end
#
@ -645,8 +645,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] unless args[:amount].nil?
@details = args[:details] unless args[:details].nil?
@amount = args[:amount] if args.key?(:amount)
@details = args[:details] if args.key?(:details)
end
end
@ -682,10 +682,10 @@ module Google
# Update properties of this object
def update!(**args)
@category = args[:category] unless args[:category].nil?
@max_rate = args[:max_rate] unless args[:max_rate].nil?
@min_rate = args[:min_rate] unless args[:min_rate].nil?
@rate_type = args[:rate_type] unless args[:rate_type].nil?
@category = args[:category] if args.key?(:category)
@max_rate = args[:max_rate] if args.key?(:max_rate)
@min_rate = args[:min_rate] if args.key?(:min_rate)
@rate_type = args[:rate_type] if args.key?(:rate_type)
end
end
@ -730,12 +730,12 @@ module Google
# Update properties of this object
def update!(**args)
@additional_details = args[:additional_details] unless args[:additional_details].nil?
@amount = args[:amount] unless args[:amount].nil?
@category = args[:category] unless args[:category].nil?
@expiration_months = args[:expiration_months] unless args[:expiration_months].nil?
@max_reward_tier = args[:max_reward_tier] unless args[:max_reward_tier].nil?
@min_reward_tier = args[:min_reward_tier] unless args[:min_reward_tier].nil?
@additional_details = args[:additional_details] if args.key?(:additional_details)
@amount = args[:amount] if args.key?(:amount)
@category = args[:category] if args.key?(:category)
@expiration_months = args[:expiration_months] if args.key?(:expiration_months)
@max_reward_tier = args[:max_reward_tier] if args.key?(:max_reward_tier)
@min_reward_tier = args[:min_reward_tier] if args.key?(:min_reward_tier)
end
end
end
@ -760,8 +760,8 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -868,24 +868,24 @@ module Google
# Update properties of this object
def update!(**args)
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil?
@charge_id = args[:charge_id] unless args[:charge_id].nil?
@charge_type = args[:charge_type] unless args[:charge_type].nil?
@commissionable_sales = args[:commissionable_sales] unless args[:commissionable_sales].nil?
@earnings = args[:earnings] unless args[:earnings].nil?
@event_date = args[:event_date] unless args[:event_date].nil?
@kind = args[:kind] unless args[:kind].nil?
@member_id = args[:member_id] unless args[:member_id].nil?
@modify_date = args[:modify_date] unless args[:modify_date].nil?
@network_fee = args[:network_fee] unless args[:network_fee].nil?
@order_id = args[:order_id] unless args[:order_id].nil?
@products = args[:products] unless args[:products].nil?
@publisher_fee = args[:publisher_fee] unless args[:publisher_fee].nil?
@publisher_id = args[:publisher_id] unless args[:publisher_id].nil?
@publisher_name = args[:publisher_name] unless args[:publisher_name].nil?
@status = args[:status] unless args[:status].nil?
@type = args[:type] unless args[:type].nil?
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
@charge_id = args[:charge_id] if args.key?(:charge_id)
@charge_type = args[:charge_type] if args.key?(:charge_type)
@commissionable_sales = args[:commissionable_sales] if args.key?(:commissionable_sales)
@earnings = args[:earnings] if args.key?(:earnings)
@event_date = args[:event_date] if args.key?(:event_date)
@kind = args[:kind] if args.key?(:kind)
@member_id = args[:member_id] if args.key?(:member_id)
@modify_date = args[:modify_date] if args.key?(:modify_date)
@network_fee = args[:network_fee] if args.key?(:network_fee)
@order_id = args[:order_id] if args.key?(:order_id)
@products = args[:products] if args.key?(:products)
@publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee)
@publisher_id = args[:publisher_id] if args.key?(:publisher_id)
@publisher_name = args[:publisher_name] if args.key?(:publisher_name)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
end
#
@ -943,15 +943,15 @@ module Google
# Update properties of this object
def update!(**args)
@category_id = args[:category_id] unless args[:category_id].nil?
@category_name = args[:category_name] unless args[:category_name].nil?
@earnings = args[:earnings] unless args[:earnings].nil?
@network_fee = args[:network_fee] unless args[:network_fee].nil?
@publisher_fee = args[:publisher_fee] unless args[:publisher_fee].nil?
@quantity = args[:quantity] unless args[:quantity].nil?
@sku = args[:sku] unless args[:sku].nil?
@sku_name = args[:sku_name] unless args[:sku_name].nil?
@unit_price = args[:unit_price] unless args[:unit_price].nil?
@category_id = args[:category_id] if args.key?(:category_id)
@category_name = args[:category_name] if args.key?(:category_name)
@earnings = args[:earnings] if args.key?(:earnings)
@network_fee = args[:network_fee] if args.key?(:network_fee)
@publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee)
@quantity = args[:quantity] if args.key?(:quantity)
@sku = args[:sku] if args.key?(:sku)
@sku_name = args[:sku_name] if args.key?(:sku_name)
@unit_price = args[:unit_price] if args.key?(:unit_price)
end
end
end
@ -982,9 +982,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1104,27 +1104,27 @@ module Google
# Update properties of this object
def update!(**args)
@advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
@authorship = args[:authorship] unless args[:authorship].nil?
@availability = args[:availability] unless args[:availability].nil?
@click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil?
@create_date = args[:create_date] unless args[:create_date].nil?
@description = args[:description] unless args[:description].nil?
@destination_url = args[:destination_url] unless args[:destination_url].nil?
@duration = args[:duration] unless args[:duration].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil?
@epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil?
@id = args[:id] unless args[:id].nil?
@image_alt_text = args[:image_alt_text] unless args[:image_alt_text].nil?
@impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil?
@is_active = args[:is_active] unless args[:is_active].nil?
@kind = args[:kind] unless args[:kind].nil?
@link_type = args[:link_type] unless args[:link_type].nil?
@name = args[:name] unless args[:name].nil?
@promotion_type = args[:promotion_type] unless args[:promotion_type].nil?
@special_offers = args[:special_offers] unless args[:special_offers].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@authorship = args[:authorship] if args.key?(:authorship)
@availability = args[:availability] if args.key?(:availability)
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
@create_date = args[:create_date] if args.key?(:create_date)
@description = args[:description] if args.key?(:description)
@destination_url = args[:destination_url] if args.key?(:destination_url)
@duration = args[:duration] if args.key?(:duration)
@end_date = args[:end_date] if args.key?(:end_date)
@epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average)
@epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average)
@id = args[:id] if args.key?(:id)
@image_alt_text = args[:image_alt_text] if args.key?(:image_alt_text)
@impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
@is_active = args[:is_active] if args.key?(:is_active)
@kind = args[:kind] if args.key?(:kind)
@link_type = args[:link_type] if args.key?(:link_type)
@name = args[:name] if args.key?(:name)
@promotion_type = args[:promotion_type] if args.key?(:promotion_type)
@special_offers = args[:special_offers] if args.key?(:special_offers)
@start_date = args[:start_date] if args.key?(:start_date)
end
# Special offers on the link.
@ -1179,14 +1179,14 @@ module Google
# Update properties of this object
def update!(**args)
@free_gift = args[:free_gift] unless args[:free_gift].nil?
@free_shipping = args[:free_shipping] unless args[:free_shipping].nil?
@free_shipping_min = args[:free_shipping_min] unless args[:free_shipping_min].nil?
@percent_off = args[:percent_off] unless args[:percent_off].nil?
@percent_off_min = args[:percent_off_min] unless args[:percent_off_min].nil?
@price_cut = args[:price_cut] unless args[:price_cut].nil?
@price_cut_min = args[:price_cut_min] unless args[:price_cut_min].nil?
@promotion_codes = args[:promotion_codes] unless args[:promotion_codes].nil?
@free_gift = args[:free_gift] if args.key?(:free_gift)
@free_shipping = args[:free_shipping] if args.key?(:free_shipping)
@free_shipping_min = args[:free_shipping_min] if args.key?(:free_shipping_min)
@percent_off = args[:percent_off] if args.key?(:percent_off)
@percent_off_min = args[:percent_off_min] if args.key?(:percent_off_min)
@price_cut = args[:price_cut] if args.key?(:price_cut)
@price_cut_min = args[:price_cut_min] if args.key?(:price_cut_min)
@promotion_codes = args[:promotion_codes] if args.key?(:promotion_codes)
end
end
end
@ -1216,9 +1216,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1242,8 +1242,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] unless args[:amount].nil?
@currency_code = args[:currency_code] unless args[:currency_code].nil?
@amount = args[:amount] if args.key?(:amount)
@currency_code = args[:currency_code] if args.key?(:currency_code)
end
end
@ -1316,17 +1316,17 @@ module Google
# Update properties of this object
def update!(**args)
@classification = args[:classification] unless args[:classification].nil?
@epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil?
@epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil?
@id = args[:id] unless args[:id].nil?
@item = args[:item] unless args[:item].nil?
@join_date = args[:join_date] unless args[:join_date].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@payout_rank = args[:payout_rank] unless args[:payout_rank].nil?
@sites = args[:sites] unless args[:sites].nil?
@status = args[:status] unless args[:status].nil?
@classification = args[:classification] if args.key?(:classification)
@epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average)
@epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average)
@id = args[:id] if args.key?(:id)
@item = args[:item] if args.key?(:item)
@join_date = args[:join_date] if args.key?(:join_date)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@payout_rank = args[:payout_rank] if args.key?(:payout_rank)
@sites = args[:sites] if args.key?(:sites)
@status = args[:status] if args.key?(:status)
end
end
@ -1356,9 +1356,9 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1413,14 +1413,14 @@ module Google
# Update properties of this object
def update!(**args)
@column_names = args[:column_names] unless args[:column_names].nil?
@end_date = args[:end_date] unless args[:end_date].nil?
@kind = args[:kind] unless args[:kind].nil?
@matching_row_count = args[:matching_row_count] unless args[:matching_row_count].nil?
@rows = args[:rows] unless args[:rows].nil?
@start_date = args[:start_date] unless args[:start_date].nil?
@totals_rows = args[:totals_rows] unless args[:totals_rows].nil?
@type = args[:type] unless args[:type].nil?
@column_names = args[:column_names] if args.key?(:column_names)
@end_date = args[:end_date] if args.key?(:end_date)
@kind = args[:kind] if args.key?(:kind)
@matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count)
@rows = args[:rows] if args.key?(:rows)
@start_date = args[:start_date] if args.key?(:start_date)
@totals_rows = args[:totals_rows] if args.key?(:totals_rows)
@type = args[:type] if args.key?(:type)
end
end
end

View File

@ -21,14 +21,14 @@ module Google
# Genomics API
#
# An API to store, process, explore, and share genomic data. It supports
# reference-based alignements, genetic variants, and reference genomes. This API
# reference-based alignments, genetic variants, and reference genomes. This API
# provides an implementation of the Global Alliance for Genomics and Health (
# GA4GH) v0.5.1 API as well as several extensions.
#
# @see
module GenomicsV1
VERSION = 'V1'
REVISION = '20160120'
REVISION = '20160124'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -44,8 +44,8 @@ module Google
# Update properties of this object
def update!(**args)
@datasets = args[:datasets] unless args[:datasets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@datasets = args[:datasets] if args.key?(:datasets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -81,10 +81,10 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@name = args[:name] unless args[:name].nil?
@create_time = args[:create_time] unless args[:create_time].nil?
@id = args[:id] if args.key?(:id)
@project_id = args[:project_id] if args.key?(:project_id)
@name = args[:name] if args.key?(:name)
@create_time = args[:create_time] if args.key?(:create_time)
end
end
@ -142,7 +142,7 @@ module Google
# Update properties of this object
def update!(**args)
@policy = args[:policy] unless args[:policy].nil?
@policy = args[:policy] if args.key?(:policy)
end
end
@ -189,9 +189,9 @@ module Google
# Update properties of this object
def update!(**args)
@version = args[:version] unless args[:version].nil?
@bindings = args[:bindings] unless args[:bindings].nil?
@etag = args[:etag] unless args[:etag].nil?
@version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
@ -227,8 +227,8 @@ module Google
# Update properties of this object
def update!(**args)
@role = args[:role] unless args[:role].nil?
@members = args[:members] unless args[:members].nil?
@role = args[:role] if args.key?(:role)
@members = args[:members] if args.key?(:members)
end
end
@ -264,7 +264,7 @@ module Google
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] unless args[:permissions].nil?
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -283,7 +283,7 @@ module Google
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] unless args[:permissions].nil?
@permissions = args[:permissions] if args.key?(:permissions)
end
end
@ -360,11 +360,11 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@metadata = args[:metadata] unless args[:metadata].nil?
@done = args[:done] unless args[:done].nil?
@error = args[:error] unless args[:error].nil?
@response = args[:response] unless args[:response].nil?
@name = args[:name] if args.key?(:name)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@response = args[:response] if args.key?(:response)
end
end
@ -427,9 +427,9 @@ module Google
# Update properties of this object
def update!(**args)
@code = args[:code] unless args[:code].nil?
@message = args[:message] unless args[:message].nil?
@details = args[:details] unless args[:details].nil?
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
@ -453,8 +453,8 @@ module Google
# Update properties of this object
def update!(**args)
@operations = args[:operations] unless args[:operations].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -507,10 +507,10 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
@source_uris = args[:source_uris] unless args[:source_uris].nil?
@partition_strategy = args[:partition_strategy] unless args[:partition_strategy].nil?
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@source_uris = args[:source_uris] if args.key?(:source_uris)
@partition_strategy = args[:partition_strategy] if args.key?(:partition_strategy)
end
end
@ -544,9 +544,9 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@export_uri = args[:export_uri] unless args[:export_uri].nil?
@reference_names = args[:reference_names] unless args[:reference_names].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@export_uri = args[:export_uri] if args.key?(:export_uri)
@reference_names = args[:reference_names] if args.key?(:reference_names)
end
end
@ -585,10 +585,10 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil?
@name = args[:name] unless args[:name].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids)
@name = args[:name] if args.key?(:name)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -614,8 +614,8 @@ module Google
# Update properties of this object
def update!(**args)
@read_group_sets = args[:read_group_sets] unless args[:read_group_sets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@read_group_sets = args[:read_group_sets] if args.key?(:read_group_sets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -672,13 +672,13 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
@name = args[:name] unless args[:name].nil?
@filename = args[:filename] unless args[:filename].nil?
@read_groups = args[:read_groups] unless args[:read_groups].nil?
@info = args[:info] unless args[:info].nil?
@id = args[:id] if args.key?(:id)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@name = args[:name] if args.key?(:name)
@filename = args[:filename] if args.key?(:filename)
@read_groups = args[:read_groups] if args.key?(:read_groups)
@info = args[:info] if args.key?(:info)
end
end
@ -747,16 +747,16 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@name = args[:name] unless args[:name].nil?
@description = args[:description] unless args[:description].nil?
@sample_id = args[:sample_id] unless args[:sample_id].nil?
@experiment = args[:experiment] unless args[:experiment].nil?
@predicted_insert_size = args[:predicted_insert_size] unless args[:predicted_insert_size].nil?
@programs = args[:programs] unless args[:programs].nil?
@reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
@info = args[:info] unless args[:info].nil?
@id = args[:id] if args.key?(:id)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@name = args[:name] if args.key?(:name)
@description = args[:description] if args.key?(:description)
@sample_id = args[:sample_id] if args.key?(:sample_id)
@experiment = args[:experiment] if args.key?(:experiment)
@predicted_insert_size = args[:predicted_insert_size] if args.key?(:predicted_insert_size)
@programs = args[:programs] if args.key?(:programs)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@info = args[:info] if args.key?(:info)
end
end
@ -796,10 +796,10 @@ module Google
# Update properties of this object
def update!(**args)
@library_id = args[:library_id] unless args[:library_id].nil?
@platform_unit = args[:platform_unit] unless args[:platform_unit].nil?
@sequencing_center = args[:sequencing_center] unless args[:sequencing_center].nil?
@instrument_model = args[:instrument_model] unless args[:instrument_model].nil?
@library_id = args[:library_id] if args.key?(:library_id)
@platform_unit = args[:platform_unit] if args.key?(:platform_unit)
@sequencing_center = args[:sequencing_center] if args.key?(:sequencing_center)
@instrument_model = args[:instrument_model] if args.key?(:instrument_model)
end
end
@ -840,11 +840,11 @@ module Google
# Update properties of this object
def update!(**args)
@command_line = args[:command_line] unless args[:command_line].nil?
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@prev_program_id = args[:prev_program_id] unless args[:prev_program_id].nil?
@version = args[:version] unless args[:version].nil?
@command_line = args[:command_line] if args.key?(:command_line)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@prev_program_id = args[:prev_program_id] if args.key?(:prev_program_id)
@version = args[:version] if args.key?(:version)
end
end
@ -881,9 +881,9 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_width = args[:bucket_width] unless args[:bucket_width].nil?
@coverage_buckets = args[:coverage_buckets] unless args[:coverage_buckets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@bucket_width = args[:bucket_width] if args.key?(:bucket_width)
@coverage_buckets = args[:coverage_buckets] if args.key?(:coverage_buckets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -909,8 +909,8 @@ module Google
# Update properties of this object
def update!(**args)
@range = args[:range] unless args[:range].nil?
@mean_coverage = args[:mean_coverage] unless args[:mean_coverage].nil?
@range = args[:range] if args.key?(:range)
@mean_coverage = args[:mean_coverage] if args.key?(:mean_coverage)
end
end
@ -939,9 +939,9 @@ module Google
# Update properties of this object
def update!(**args)
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
end
end
@ -1002,13 +1002,13 @@ module Google
# Update properties of this object
def update!(**args)
@read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil?
@read_group_ids = args[:read_group_ids] unless args[:read_group_ids].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
@read_group_ids = args[:read_group_ids] if args.key?(:read_group_ids)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -1037,8 +1037,8 @@ module Google
# Update properties of this object
def update!(**args)
@alignments = args[:alignments] unless args[:alignments].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@alignments = args[:alignments] if args.key?(:alignments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1213,23 +1213,23 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@read_group_id = args[:read_group_id] unless args[:read_group_id].nil?
@read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil?
@fragment_name = args[:fragment_name] unless args[:fragment_name].nil?
@proper_placement = args[:proper_placement] unless args[:proper_placement].nil?
@duplicate_fragment = args[:duplicate_fragment] unless args[:duplicate_fragment].nil?
@fragment_length = args[:fragment_length] unless args[:fragment_length].nil?
@read_number = args[:read_number] unless args[:read_number].nil?
@number_reads = args[:number_reads] unless args[:number_reads].nil?
@failed_vendor_quality_checks = args[:failed_vendor_quality_checks] unless args[:failed_vendor_quality_checks].nil?
@alignment = args[:alignment] unless args[:alignment].nil?
@secondary_alignment = args[:secondary_alignment] unless args[:secondary_alignment].nil?
@supplementary_alignment = args[:supplementary_alignment] unless args[:supplementary_alignment].nil?
@aligned_sequence = args[:aligned_sequence] unless args[:aligned_sequence].nil?
@aligned_quality = args[:aligned_quality] unless args[:aligned_quality].nil?
@next_mate_position = args[:next_mate_position] unless args[:next_mate_position].nil?
@info = args[:info] unless args[:info].nil?
@id = args[:id] if args.key?(:id)
@read_group_id = args[:read_group_id] if args.key?(:read_group_id)
@read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id)
@fragment_name = args[:fragment_name] if args.key?(:fragment_name)
@proper_placement = args[:proper_placement] if args.key?(:proper_placement)
@duplicate_fragment = args[:duplicate_fragment] if args.key?(:duplicate_fragment)
@fragment_length = args[:fragment_length] if args.key?(:fragment_length)
@read_number = args[:read_number] if args.key?(:read_number)
@number_reads = args[:number_reads] if args.key?(:number_reads)
@failed_vendor_quality_checks = args[:failed_vendor_quality_checks] if args.key?(:failed_vendor_quality_checks)
@alignment = args[:alignment] if args.key?(:alignment)
@secondary_alignment = args[:secondary_alignment] if args.key?(:secondary_alignment)
@supplementary_alignment = args[:supplementary_alignment] if args.key?(:supplementary_alignment)
@aligned_sequence = args[:aligned_sequence] if args.key?(:aligned_sequence)
@aligned_quality = args[:aligned_quality] if args.key?(:aligned_quality)
@next_mate_position = args[:next_mate_position] if args.key?(:next_mate_position)
@info = args[:info] if args.key?(:info)
end
end
@ -1265,9 +1265,9 @@ module Google
# Update properties of this object
def update!(**args)
@position = args[:position] unless args[:position].nil?
@mapping_quality = args[:mapping_quality] unless args[:mapping_quality].nil?
@cigar = args[:cigar] unless args[:cigar].nil?
@position = args[:position] if args.key?(:position)
@mapping_quality = args[:mapping_quality] if args.key?(:mapping_quality)
@cigar = args[:cigar] if args.key?(:cigar)
end
end
@ -1301,9 +1301,9 @@ module Google
# Update properties of this object
def update!(**args)
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@position = args[:position] unless args[:position].nil?
@reverse_strand = args[:reverse_strand] unless args[:reverse_strand].nil?
@reference_name = args[:reference_name] if args.key?(:reference_name)
@position = args[:position] if args.key?(:position)
@reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand)
end
end
@ -1334,9 +1334,9 @@ module Google
# Update properties of this object
def update!(**args)
@operation = args[:operation] unless args[:operation].nil?
@operation_length = args[:operation_length] unless args[:operation_length].nil?
@reference_sequence = args[:reference_sequence] unless args[:reference_sequence].nil?
@operation = args[:operation] if args.key?(:operation)
@operation_length = args[:operation_length] if args.key?(:operation_length)
@reference_sequence = args[:reference_sequence] if args.key?(:reference_sequence)
end
end
@ -1379,11 +1379,11 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
end
end
@ -1402,7 +1402,7 @@ module Google
# Update properties of this object
def update!(**args)
@alignments = args[:alignments] unless args[:alignments].nil?
@alignments = args[:alignments] if args.key?(:alignments)
end
end
@ -1447,11 +1447,11 @@ module Google
# Update properties of this object
def update!(**args)
@md5checksums = args[:md5checksums] unless args[:md5checksums].nil?
@accessions = args[:accessions] unless args[:accessions].nil?
@assembly_id = args[:assembly_id] unless args[:assembly_id].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@md5checksums = args[:md5checksums] if args.key?(:md5checksums)
@accessions = args[:accessions] if args.key?(:accessions)
@assembly_id = args[:assembly_id] if args.key?(:assembly_id)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -1477,8 +1477,8 @@ module Google
# Update properties of this object
def update!(**args)
@reference_sets = args[:reference_sets] unless args[:reference_sets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@reference_sets = args[:reference_sets] if args.key?(:reference_sets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1548,14 +1548,14 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@reference_ids = args[:reference_ids] unless args[:reference_ids].nil?
@md5checksum = args[:md5checksum] unless args[:md5checksum].nil?
@ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil?
@description = args[:description] unless args[:description].nil?
@assembly_id = args[:assembly_id] unless args[:assembly_id].nil?
@source_uri = args[:source_uri] unless args[:source_uri].nil?
@source_accessions = args[:source_accessions] unless args[:source_accessions].nil?
@id = args[:id] if args.key?(:id)
@reference_ids = args[:reference_ids] if args.key?(:reference_ids)
@md5checksum = args[:md5checksum] if args.key?(:md5checksum)
@ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id)
@description = args[:description] if args.key?(:description)
@assembly_id = args[:assembly_id] if args.key?(:assembly_id)
@source_uri = args[:source_uri] if args.key?(:source_uri)
@source_accessions = args[:source_accessions] if args.key?(:source_accessions)
end
end
@ -1599,11 +1599,11 @@ module Google
# Update properties of this object
def update!(**args)
@md5checksums = args[:md5checksums] unless args[:md5checksums].nil?
@accessions = args[:accessions] unless args[:accessions].nil?
@reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@md5checksums = args[:md5checksums] if args.key?(:md5checksums)
@accessions = args[:accessions] if args.key?(:accessions)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -1629,8 +1629,8 @@ module Google
# Update properties of this object
def update!(**args)
@references = args[:references] unless args[:references].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@references = args[:references] if args.key?(:references)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1688,13 +1688,13 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@length = args[:length] unless args[:length].nil?
@md5checksum = args[:md5checksum] unless args[:md5checksum].nil?
@name = args[:name] unless args[:name].nil?
@source_uri = args[:source_uri] unless args[:source_uri].nil?
@source_accessions = args[:source_accessions] unless args[:source_accessions].nil?
@ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil?
@id = args[:id] if args.key?(:id)
@length = args[:length] if args.key?(:length)
@md5checksum = args[:md5checksum] if args.key?(:md5checksum)
@name = args[:name] if args.key?(:name)
@source_uri = args[:source_uri] if args.key?(:source_uri)
@source_accessions = args[:source_accessions] if args.key?(:source_accessions)
@ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id)
end
end
@ -1726,9 +1726,9 @@ module Google
# Update properties of this object
def update!(**args)
@offset = args[:offset] unless args[:offset].nil?
@sequence = args[:sequence] unless args[:sequence].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@offset = args[:offset] if args.key?(:offset)
@sequence = args[:sequence] if args.key?(:sequence)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -1772,10 +1772,10 @@ module Google
# Update properties of this object
def update!(**args)
@variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
@source_uris = args[:source_uris] unless args[:source_uris].nil?
@format = args[:format] unless args[:format].nil?
@normalize_reference_names = args[:normalize_reference_names] unless args[:normalize_reference_names].nil?
@variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id)
@source_uris = args[:source_uris] if args.key?(:source_uris)
@format = args[:format] if args.key?(:format)
@normalize_reference_names = args[:normalize_reference_names] if args.key?(:normalize_reference_names)
end
end
@ -1825,11 +1825,11 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
@id = args[:id] unless args[:id].nil?
@reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
@reference_bounds = args[:reference_bounds] unless args[:reference_bounds].nil?
@metadata = args[:metadata] unless args[:metadata].nil?
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@id = args[:id] if args.key?(:id)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
@ -1855,8 +1855,8 @@ module Google
# Update properties of this object
def update!(**args)
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@upper_bound = args[:upper_bound] unless args[:upper_bound].nil?
@reference_name = args[:reference_name] if args.key?(:reference_name)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
@ -1911,13 +1911,13 @@ module Google
# Update properties of this object
def update!(**args)
@key = args[:key] unless args[:key].nil?
@value = args[:value] unless args[:value].nil?
@id = args[:id] unless args[:id].nil?
@type = args[:type] unless args[:type].nil?
@number = args[:number] unless args[:number].nil?
@description = args[:description] unless args[:description].nil?
@info = args[:info] unless args[:info].nil?
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
@id = args[:id] if args.key?(:id)
@type = args[:type] if args.key?(:type)
@number = args[:number] if args.key?(:number)
@description = args[:description] if args.key?(:description)
@info = args[:info] if args.key?(:info)
end
end
@ -1961,11 +1961,11 @@ module Google
# Update properties of this object
def update!(**args)
@call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@format = args[:format] unless args[:format].nil?
@bigquery_dataset = args[:bigquery_dataset] unless args[:bigquery_dataset].nil?
@bigquery_table = args[:bigquery_table] unless args[:bigquery_table].nil?
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
@project_id = args[:project_id] if args.key?(:project_id)
@format = args[:format] if args.key?(:format)
@bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset)
@bigquery_table = args[:bigquery_table] if args.key?(:bigquery_table)
end
end
@ -1998,9 +1998,9 @@ module Google
# Update properties of this object
def update!(**args)
@dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -2026,8 +2026,8 @@ module Google
# Update properties of this object
def update!(**args)
@variant_sets = args[:variant_sets] unless args[:variant_sets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@variant_sets = args[:variant_sets] if args.key?(:variant_sets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -2099,15 +2099,15 @@ module Google
# Update properties of this object
def update!(**args)
@variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil?
@variant_name = args[:variant_name] unless args[:variant_name].nil?
@call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@max_calls = args[:max_calls] unless args[:max_calls].nil?
@variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids)
@variant_name = args[:variant_name] if args.key?(:variant_name)
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
@max_calls = args[:max_calls] if args.key?(:max_calls)
end
end
@ -2133,8 +2133,8 @@ module Google
# Update properties of this object
def update!(**args)
@variants = args[:variants] unless args[:variants].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@variants = args[:variants] if args.key?(:variants)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -2227,19 +2227,19 @@ module Google
# Update properties of this object
def update!(**args)
@variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
@id = args[:id] unless args[:id].nil?
@names = args[:names] unless args[:names].nil?
@created = args[:created] unless args[:created].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@reference_bases = args[:reference_bases] unless args[:reference_bases].nil?
@alternate_bases = args[:alternate_bases] unless args[:alternate_bases].nil?
@quality = args[:quality] unless args[:quality].nil?
@filter = args[:filter] unless args[:filter].nil?
@info = args[:info] unless args[:info].nil?
@calls = args[:calls] unless args[:calls].nil?
@variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id)
@id = args[:id] if args.key?(:id)
@names = args[:names] if args.key?(:names)
@created = args[:created] if args.key?(:created)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@reference_bases = args[:reference_bases] if args.key?(:reference_bases)
@alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases)
@quality = args[:quality] if args.key?(:quality)
@filter = args[:filter] if args.key?(:filter)
@info = args[:info] if args.key?(:info)
@calls = args[:calls] if args.key?(:calls)
end
end
@ -2303,12 +2303,12 @@ module Google
# Update properties of this object
def update!(**args)
@call_set_id = args[:call_set_id] unless args[:call_set_id].nil?
@call_set_name = args[:call_set_name] unless args[:call_set_name].nil?
@genotype = args[:genotype] unless args[:genotype].nil?
@phaseset = args[:phaseset] unless args[:phaseset].nil?
@genotype_likelihood = args[:genotype_likelihood] unless args[:genotype_likelihood].nil?
@info = args[:info] unless args[:info].nil?
@call_set_id = args[:call_set_id] if args.key?(:call_set_id)
@call_set_name = args[:call_set_name] if args.key?(:call_set_name)
@genotype = args[:genotype] if args.key?(:genotype)
@phaseset = args[:phaseset] if args.key?(:phaseset)
@genotype_likelihood = args[:genotype_likelihood] if args.key?(:genotype_likelihood)
@info = args[:info] if args.key?(:info)
end
end
@ -2346,10 +2346,10 @@ module Google
# Update properties of this object
def update!(**args)
@variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil?
@name = args[:name] unless args[:name].nil?
@page_token = args[:page_token] unless args[:page_token].nil?
@page_size = args[:page_size] unless args[:page_size].nil?
@variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids)
@name = args[:name] if args.key?(:name)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
@ -2375,8 +2375,8 @@ module Google
# Update properties of this object
def update!(**args)
@call_sets = args[:call_sets] unless args[:call_sets].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@call_sets = args[:call_sets] if args.key?(:call_sets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -2427,12 +2427,12 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@name = args[:name] unless args[:name].nil?
@sample_id = args[:sample_id] unless args[:sample_id].nil?
@variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil?
@created = args[:created] unless args[:created].nil?
@info = args[:info] unless args[:info].nil?
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@sample_id = args[:sample_id] if args.key?(:sample_id)
@variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids)
@created = args[:created] if args.key?(:created)
@info = args[:info] if args.key?(:info)
end
end
@ -2480,12 +2480,12 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
@call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id)
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
end
end
@ -2504,7 +2504,7 @@ module Google
# Update properties of this object
def update!(**args)
@variants = args[:variants] unless args[:variants].nil?
@variants = args[:variants] if args.key?(:variants)
end
end
@ -2523,7 +2523,7 @@ module Google
# Update properties of this object
def update!(**args)
@read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil?
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
end
end
@ -2542,7 +2542,7 @@ module Google
# Update properties of this object
def update!(**args)
@call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
end
end
@ -2579,10 +2579,10 @@ module Google
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@create_time = args[:create_time] unless args[:create_time].nil?
@request = args[:request] unless args[:request].nil?
@events = args[:events] unless args[:events].nil?
@project_id = args[:project_id] if args.key?(:project_id)
@create_time = args[:create_time] if args.key?(:create_time)
@request = args[:request] if args.key?(:request)
@events = args[:events] if args.key?(:events)
end
end
@ -2601,7 +2601,7 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] unless args[:description].nil?
@description = args[:description] if args.key?(:description)
end
end
end

View File

@ -23,7 +23,7 @@ module Google
# Genomics API
#
# An API to store, process, explore, and share genomic data. It supports
# reference-based alignements, genetic variants, and reference genomes. This API
# reference-based alignments, genetic variants, and reference genomes. This API
# provides an implementation of the Global Alliance for Genomics and Health (
# GA4GH) v0.5.1 API as well as several extensions.
#

View File

@ -42,8 +42,8 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@message = args[:message] unless args[:message].nil?
@id = args[:id] if args.key?(:id)
@message = args[:message] if args.key?(:message)
end
end
@ -90,12 +90,12 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@labels_added = args[:labels_added] unless args[:labels_added].nil?
@labels_removed = args[:labels_removed] unless args[:labels_removed].nil?
@messages = args[:messages] unless args[:messages].nil?
@messages_added = args[:messages_added] unless args[:messages_added].nil?
@messages_deleted = args[:messages_deleted] unless args[:messages_deleted].nil?
@id = args[:id] if args.key?(:id)
@labels_added = args[:labels_added] if args.key?(:labels_added)
@labels_removed = args[:labels_removed] if args.key?(:labels_removed)
@messages = args[:messages] if args.key?(:messages)
@messages_added = args[:messages_added] if args.key?(:messages_added)
@messages_deleted = args[:messages_deleted] if args.key?(:messages_deleted)
end
end
@ -119,8 +119,8 @@ module Google
# Update properties of this object
def update!(**args)
@label_ids = args[:label_ids] unless args[:label_ids].nil?
@message = args[:message] unless args[:message].nil?
@label_ids = args[:label_ids] if args.key?(:label_ids)
@message = args[:message] if args.key?(:message)
end
end
@ -144,8 +144,8 @@ module Google
# Update properties of this object
def update!(**args)
@label_ids = args[:label_ids] unless args[:label_ids].nil?
@message = args[:message] unless args[:message].nil?
@label_ids = args[:label_ids] if args.key?(:label_ids)
@message = args[:message] if args.key?(:message)
end
end
@ -164,7 +164,7 @@ module Google
# Update properties of this object
def update!(**args)
@message = args[:message] unless args[:message].nil?
@message = args[:message] if args.key?(:message)
end
end
@ -183,7 +183,7 @@ module Google
# Update properties of this object
def update!(**args)
@message = args[:message] unless args[:message].nil?
@message = args[:message] if args.key?(:message)
end
end
@ -249,15 +249,15 @@ module Google
# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@label_list_visibility = args[:label_list_visibility] unless args[:label_list_visibility].nil?
@message_list_visibility = args[:message_list_visibility] unless args[:message_list_visibility].nil?
@messages_total = args[:messages_total] unless args[:messages_total].nil?
@messages_unread = args[:messages_unread] unless args[:messages_unread].nil?
@name = args[:name] unless args[:name].nil?
@threads_total = args[:threads_total] unless args[:threads_total].nil?
@threads_unread = args[:threads_unread] unless args[:threads_unread].nil?
@type = args[:type] unless args[:type].nil?
@id = args[:id] if args.key?(:id)
@label_list_visibility = args[:label_list_visibility] if args.key?(:label_list_visibility)
@message_list_visibility = args[:message_list_visibility] if args.key?(:message_list_visibility)
@messages_total = args[:messages_total] if args.key?(:messages_total)
@messages_unread = args[:messages_unread] if args.key?(:messages_unread)
@name = args[:name] if args.key?(:name)
@threads_total = args[:threads_total] if args.key?(:threads_total)
@threads_unread = args[:threads_unread] if args.key?(:threads_unread)
@type = args[:type] if args.key?(:type)
end
end
@ -286,9 +286,9 @@ module Google
# Update properties of this object
def update!(**args)
@drafts = args[:drafts] unless args[:drafts].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil?
@drafts = args[:drafts] if args.key?(:drafts)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
end
end
@ -318,9 +318,9 @@ module Google
# Update properties of this object
def update!(**args)
@history = args[:history] unless args[:history].nil?
@history_id = args[:history_id] unless args[:history_id].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@history = args[:history] if args.key?(:history)
@history_id = args[:history_id] if args.key?(:history_id)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -339,7 +339,7 @@ module Google
# Update properties of this object
def update!(**args)
@labels = args[:labels] unless args[:labels].nil?
@labels = args[:labels] if args.key?(:labels)
end
end
@ -368,9 +368,9 @@ module Google
# Update properties of this object
def update!(**args)
@messages = args[:messages] unless args[:messages].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil?
@messages = args[:messages] if args.key?(:messages)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
end
end
@ -399,9 +399,9 @@ module Google
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil?
@threads = args[:threads] unless args[:threads].nil?
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
@threads = args[:threads] if args.key?(:threads)
end
end
@ -472,15 +472,15 @@ module Google
# Update properties of this object
def update!(**args)
@history_id = args[:history_id] unless args[:history_id].nil?
@id = args[:id] unless args[:id].nil?
@internal_date = args[:internal_date] unless args[:internal_date].nil?
@label_ids = args[:label_ids] unless args[:label_ids].nil?
@payload = args[:payload] unless args[:payload].nil?
@raw = args[:raw] unless args[:raw].nil?
@size_estimate = args[:size_estimate] unless args[:size_estimate].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
@thread_id = args[:thread_id] unless args[:thread_id].nil?
@history_id = args[:history_id] if args.key?(:history_id)
@id = args[:id] if args.key?(:id)
@internal_date = args[:internal_date] if args.key?(:internal_date)
@label_ids = args[:label_ids] if args.key?(:label_ids)
@payload = args[:payload] if args.key?(:payload)
@raw = args[:raw] if args.key?(:raw)
@size_estimate = args[:size_estimate] if args.key?(:size_estimate)
@snippet = args[:snippet] if args.key?(:snippet)
@thread_id = args[:thread_id] if args.key?(:thread_id)
end
end
@ -530,12 +530,12 @@ module Google
# Update properties of this object
def update!(**args)
@body = args[:body] unless args[:body].nil?
@filename = args[:filename] unless args[:filename].nil?
@headers = args[:headers] unless args[:headers].nil?
@mime_type = args[:mime_type] unless args[:mime_type].nil?
@part_id = args[:part_id] unless args[:part_id].nil?
@parts = args[:parts] unless args[:parts].nil?
@body = args[:body] if args.key?(:body)
@filename = args[:filename] if args.key?(:filename)
@headers = args[:headers] if args.key?(:headers)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@part_id = args[:part_id] if args.key?(:part_id)
@parts = args[:parts] if args.key?(:parts)
end
end
@ -569,9 +569,9 @@ module Google
# Update properties of this object
def update!(**args)
@attachment_id = args[:attachment_id] unless args[:attachment_id].nil?
@data = args[:data] unless args[:data].nil?
@size = args[:size] unless args[:size].nil?
@attachment_id = args[:attachment_id] if args.key?(:attachment_id)
@data = args[:data] if args.key?(:data)
@size = args[:size] if args.key?(:size)
end
end
@ -596,8 +596,8 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] unless args[:name].nil?
@value = args[:value] unless args[:value].nil?
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
@ -621,8 +621,8 @@ module Google
# Update properties of this object
def update!(**args)
@add_label_ids = args[:add_label_ids] unless args[:add_label_ids].nil?
@remove_label_ids = args[:remove_label_ids] unless args[:remove_label_ids].nil?
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end
end
@ -646,8 +646,8 @@ module Google
# Update properties of this object
def update!(**args)
@add_label_ids = args[:add_label_ids] unless args[:add_label_ids].nil?
@remove_label_ids = args[:remove_label_ids] unless args[:remove_label_ids].nil?
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end
end
@ -681,10 +681,10 @@ module Google
# Update properties of this object
def update!(**args)
@email_address = args[:email_address] unless args[:email_address].nil?
@history_id = args[:history_id] unless args[:history_id].nil?
@messages_total = args[:messages_total] unless args[:messages_total].nil?
@threads_total = args[:threads_total] unless args[:threads_total].nil?
@email_address = args[:email_address] if args.key?(:email_address)
@history_id = args[:history_id] if args.key?(:history_id)
@messages_total = args[:messages_total] if args.key?(:messages_total)
@threads_total = args[:threads_total] if args.key?(:threads_total)
end
end
@ -718,10 +718,10 @@ module Google
# Update properties of this object
def update!(**args)
@history_id = args[:history_id] unless args[:history_id].nil?
@id = args[:id] unless args[:id].nil?
@messages = args[:messages] unless args[:messages].nil?
@snippet = args[:snippet] unless args[:snippet].nil?
@history_id = args[:history_id] if args.key?(:history_id)
@id = args[:id] if args.key?(:id)
@messages = args[:messages] if args.key?(:messages)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
@ -758,9 +758,9 @@ module Google
# Update properties of this object
def update!(**args)
@label_filter_action = args[:label_filter_action] unless args[:label_filter_action].nil?
@label_ids = args[:label_ids] unless args[:label_ids].nil?
@topic_name = args[:topic_name] unless args[:topic_name].nil?
@label_filter_action = args[:label_filter_action] if args.key?(:label_filter_action)
@label_ids = args[:label_ids] if args.key?(:label_ids)
@topic_name = args[:topic_name] if args.key?(:topic_name)
end
end
@ -785,8 +785,8 @@ module Google
# Update properties of this object
def update!(**args)
@expiration = args[:expiration] unless args[:expiration].nil?
@history_id = args[:history_id] unless args[:history_id].nil?
@expiration = args[:expiration] if args.key?(:expiration)
@history_id = args[:history_id] if args.key?(:history_id)
end
end
end

View File

@ -42,8 +42,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@response_code = args[:response_code] unless args[:response_code].nil?
@kind = args[:kind] if args.key?(:kind)
@response_code = args[:response_code] if args.key?(:response_code)
end
end
end

View File

@ -186,34 +186,34 @@ module Google
# Update properties of this object
def update!(**args)
@allow_external_members = args[:allow_external_members] unless args[:allow_external_members].nil?
@allow_google_communication = args[:allow_google_communication] unless args[:allow_google_communication].nil?
@allow_web_posting = args[:allow_web_posting] unless args[:allow_web_posting].nil?
@archive_only = args[:archive_only] unless args[:archive_only].nil?
@custom_reply_to = args[:custom_reply_to] unless args[:custom_reply_to].nil?
@default_message_deny_notification_text = args[:default_message_deny_notification_text] unless args[:default_message_deny_notification_text].nil?
@description = args[:description] unless args[:description].nil?
@email = args[:email] unless args[:email].nil?
@include_in_global_address_list = args[:include_in_global_address_list] unless args[:include_in_global_address_list].nil?
@is_archived = args[:is_archived] unless args[:is_archived].nil?
@kind = args[:kind] unless args[:kind].nil?
@max_message_bytes = args[:max_message_bytes] unless args[:max_message_bytes].nil?
@members_can_post_as_the_group = args[:members_can_post_as_the_group] unless args[:members_can_post_as_the_group].nil?
@message_display_font = args[:message_display_font] unless args[:message_display_font].nil?
@message_moderation_level = args[:message_moderation_level] unless args[:message_moderation_level].nil?
@name = args[:name] unless args[:name].nil?
@primary_language = args[:primary_language] unless args[:primary_language].nil?
@reply_to = args[:reply_to] unless args[:reply_to].nil?
@send_message_deny_notification = args[:send_message_deny_notification] unless args[:send_message_deny_notification].nil?
@show_in_group_directory = args[:show_in_group_directory] unless args[:show_in_group_directory].nil?
@spam_moderation_level = args[:spam_moderation_level] unless args[:spam_moderation_level].nil?
@who_can_contact_owner = args[:who_can_contact_owner] unless args[:who_can_contact_owner].nil?
@who_can_invite = args[:who_can_invite] unless args[:who_can_invite].nil?
@who_can_join = args[:who_can_join] unless args[:who_can_join].nil?
@who_can_leave_group = args[:who_can_leave_group] unless args[:who_can_leave_group].nil?
@who_can_post_message = args[:who_can_post_message] unless args[:who_can_post_message].nil?
@who_can_view_group = args[:who_can_view_group] unless args[:who_can_view_group].nil?
@who_can_view_membership = args[:who_can_view_membership] unless args[:who_can_view_membership].nil?
@allow_external_members = args[:allow_external_members] if args.key?(:allow_external_members)
@allow_google_communication = args[:allow_google_communication] if args.key?(:allow_google_communication)
@allow_web_posting = args[:allow_web_posting] if args.key?(:allow_web_posting)
@archive_only = args[:archive_only] if args.key?(:archive_only)
@custom_reply_to = args[:custom_reply_to] if args.key?(:custom_reply_to)
@default_message_deny_notification_text = args[:default_message_deny_notification_text] if args.key?(:default_message_deny_notification_text)
@description = args[:description] if args.key?(:description)
@email = args[:email] if args.key?(:email)
@include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list)
@is_archived = args[:is_archived] if args.key?(:is_archived)
@kind = args[:kind] if args.key?(:kind)
@max_message_bytes = args[:max_message_bytes] if args.key?(:max_message_bytes)
@members_can_post_as_the_group = args[:members_can_post_as_the_group] if args.key?(:members_can_post_as_the_group)
@message_display_font = args[:message_display_font] if args.key?(:message_display_font)
@message_moderation_level = args[:message_moderation_level] if args.key?(:message_moderation_level)
@name = args[:name] if args.key?(:name)
@primary_language = args[:primary_language] if args.key?(:primary_language)
@reply_to = args[:reply_to] if args.key?(:reply_to)
@send_message_deny_notification = args[:send_message_deny_notification] if args.key?(:send_message_deny_notification)
@show_in_group_directory = args[:show_in_group_directory] if args.key?(:show_in_group_directory)
@spam_moderation_level = args[:spam_moderation_level] if args.key?(:spam_moderation_level)
@who_can_contact_owner = args[:who_can_contact_owner] if args.key?(:who_can_contact_owner)
@who_can_invite = args[:who_can_invite] if args.key?(:who_can_invite)
@who_can_join = args[:who_can_join] if args.key?(:who_can_join)
@who_can_leave_group = args[:who_can_leave_group] if args.key?(:who_can_leave_group)
@who_can_post_message = args[:who_can_post_message] if args.key?(:who_can_post_message)
@who_can_view_group = args[:who_can_view_group] if args.key?(:who_can_view_group)
@who_can_view_membership = args[:who_can_view_membership] if args.key?(:who_can_view_membership)
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20160120'
REVISION = '20160125'
end
end
end

View File

@ -75,14 +75,14 @@ module Google
# Update properties of this object
def update!(**args)
@all_providers = args[:all_providers] unless args[:all_providers].nil?
@auth_uri = args[:auth_uri] unless args[:auth_uri].nil?
@captcha_required = args[:captcha_required] unless args[:captcha_required].nil?
@for_existing_provider = args[:for_existing_provider] unless args[:for_existing_provider].nil?
@kind = args[:kind] unless args[:kind].nil?
@provider_id = args[:provider_id] unless args[:provider_id].nil?
@registered = args[:registered] unless args[:registered].nil?
@session_id = args[:session_id] unless args[:session_id].nil?
@all_providers = args[:all_providers] if args.key?(:all_providers)
@auth_uri = args[:auth_uri] if args.key?(:auth_uri)
@captcha_required = args[:captcha_required] if args.key?(:captcha_required)
@for_existing_provider = args[:for_existing_provider] if args.key?(:for_existing_provider)
@kind = args[:kind] if args.key?(:kind)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@registered = args[:registered] if args.key?(:registered)
@session_id = args[:session_id] if args.key?(:session_id)
end
end
@ -101,7 +101,7 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@kind = args[:kind] if args.key?(:kind)
end
end
@ -131,9 +131,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@users = args[:users] unless args[:users].nil?
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@users = args[:users] if args.key?(:users)
end
end
@ -157,8 +157,8 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@users = args[:users] unless args[:users].nil?
@kind = args[:kind] if args.key?(:kind)
@users = args[:users] if args.key?(:users)
end
end
@ -188,9 +188,9 @@ module Google
# Update properties of this object
def update!(**args)
@email = args[:email] unless args[:email].nil?
@kind = args[:kind] unless args[:kind].nil?
@oob_code = args[:oob_code] unless args[:oob_code].nil?
@email = args[:email] if args.key?(:email)
@kind = args[:kind] if args.key?(:kind)
@oob_code = args[:oob_code] if args.key?(:oob_code)
end
end
@ -219,9 +219,9 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@recaptcha_site_key = args[:recaptcha_site_key] unless args[:recaptcha_site_key].nil?
@recaptcha_stoken = args[:recaptcha_stoken] unless args[:recaptcha_stoken].nil?
@kind = args[:kind] if args.key?(:kind)
@recaptcha_site_key = args[:recaptcha_site_key] if args.key?(:recaptcha_site_key)
@recaptcha_stoken = args[:recaptcha_stoken] if args.key?(:recaptcha_stoken)
end
end
@ -290,16 +290,16 @@ module Google
# Update properties of this object
def update!(**args)
@app_id = args[:app_id] unless args[:app_id].nil?
@client_id = args[:client_id] unless args[:client_id].nil?
@context = args[:context] unless args[:context].nil?
@continue_uri = args[:continue_uri] unless args[:continue_uri].nil?
@identifier = args[:identifier] unless args[:identifier].nil?
@oauth_consumer_key = args[:oauth_consumer_key] unless args[:oauth_consumer_key].nil?
@oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil?
@openid_realm = args[:openid_realm] unless args[:openid_realm].nil?
@ota_app = args[:ota_app] unless args[:ota_app].nil?
@provider_id = args[:provider_id] unless args[:provider_id].nil?
@app_id = args[:app_id] if args.key?(:app_id)
@client_id = args[:client_id] if args.key?(:client_id)
@context = args[:context] if args.key?(:context)
@continue_uri = args[:continue_uri] if args.key?(:continue_uri)
@identifier = args[:identifier] if args.key?(:identifier)
@oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
@oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
@openid_realm = args[:openid_realm] if args.key?(:openid_realm)
@ota_app = args[:ota_app] if args.key?(:ota_app)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
@ -307,6 +307,12 @@ module Google
class DeleteAccountRequest
include Google::Apis::Core::Hashable
# GCP project number of the requesting delegated app. Currently only intended
# for Firebase V1 migration.
# Corresponds to the JSON property `delegatedProjectNumber`
# @return [String]
attr_accessor :delegated_project_number
# The local ID of the user.
# Corresponds to the JSON property `localId`
# @return [String]
@ -318,7 +324,8 @@ module Google
# Update properties of this object
def update!(**args)
@local_id = args[:local_id] unless args[:local_id].nil?
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@local_id = args[:local_id] if args.key?(:local_id)
end
end
@ -326,6 +333,12 @@ module Google
class DownloadAccountRequest
include Google::Apis::Core::Hashable
# GCP project number of the requesting delegated app. Currently only intended
# for Firebase V1 migration.
# Corresponds to the JSON property `delegatedProjectNumber`
# @return [String]
attr_accessor :delegated_project_number
# The max number of results to return in the response.
# Corresponds to the JSON property `maxResults`
# @return [Fixnum]
@ -342,8 +355,9 @@ module Google
# Update properties of this object
def update!(**args)
@max_results = args[:max_results] unless args[:max_results].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@max_results = args[:max_results] if args.key?(:max_results)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -372,9 +386,9 @@ module Google
# Update properties of this object
def update!(**args)
@email = args[:email] unless args[:email].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@email = args[:email] if args.key?(:email)
@id_token = args[:id_token] if args.key?(:id_token)
@local_id = args[:local_id] if args.key?(:local_id)
end
end
@ -409,10 +423,10 @@ module Google
# Update properties of this object
def update!(**args)
@allow_password_user = args[:allow_password_user] unless args[:allow_password_user].nil?
@api_key = args[:api_key] unless args[:api_key].nil?
@idp_config = args[:idp_config] unless args[:idp_config].nil?
@project_id = args[:project_id] unless args[:project_id].nil?
@allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user)
@api_key = args[:api_key] if args.key?(:api_key)
@idp_config = args[:idp_config] if args.key?(:idp_config)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
@ -446,10 +460,10 @@ module Google
# Update properties of this object
def update!(**args)
@email = args[:email] unless args[:email].nil?
@new_password = args[:new_password] unless args[:new_password].nil?
@old_password = args[:old_password] unless args[:old_password].nil?
@oob_code = args[:oob_code] unless args[:oob_code].nil?
@email = args[:email] if args.key?(:email)
@new_password = args[:new_password] if args.key?(:new_password)
@old_password = args[:old_password] if args.key?(:old_password)
@oob_code = args[:oob_code] if args.key?(:oob_code)
end
end
@ -542,21 +556,21 @@ module Google
# Update properties of this object
def update!(**args)
@captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil?
@captcha_response = args[:captcha_response] unless args[:captcha_response].nil?
@delegated_project_number = args[:delegated_project_number] unless args[:delegated_project_number].nil?
@disable_user = args[:disable_user] unless args[:disable_user].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@email_verified = args[:email_verified] unless args[:email_verified].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@instance_id = args[:instance_id] unless args[:instance_id].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@oob_code = args[:oob_code] unless args[:oob_code].nil?
@password = args[:password] unless args[:password].nil?
@provider = args[:provider] unless args[:provider].nil?
@upgrade_to_federated_login = args[:upgrade_to_federated_login] unless args[:upgrade_to_federated_login].nil?
@valid_since = args[:valid_since] unless args[:valid_since].nil?
@captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
@captcha_response = args[:captcha_response] if args.key?(:captcha_response)
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@disable_user = args[:disable_user] if args.key?(:disable_user)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@email_verified = args[:email_verified] if args.key?(:email_verified)
@id_token = args[:id_token] if args.key?(:id_token)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@local_id = args[:local_id] if args.key?(:local_id)
@oob_code = args[:oob_code] if args.key?(:oob_code)
@password = args[:password] if args.key?(:password)
@provider = args[:provider] if args.key?(:provider)
@upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login)
@valid_since = args[:valid_since] if args.key?(:valid_since)
end
end
@ -580,8 +594,8 @@ module Google
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] unless args[:instance_id].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@instance_id = args[:instance_id] if args.key?(:instance_id)
@local_id = args[:local_id] if args.key?(:local_id)
end
end
@ -600,7 +614,7 @@ module Google
# Update properties of this object
def update!(**args)
@local_id = args[:local_id] unless args[:local_id].nil?
@local_id = args[:local_id] if args.key?(:local_id)
end
end
@ -608,6 +622,12 @@ module Google
class UploadAccountRequest
include Google::Apis::Core::Hashable
# GCP project number of the requesting delegated app. Currently only intended
# for Firebase V1 migration.
# Corresponds to the JSON property `delegatedProjectNumber`
# @return [String]
attr_accessor :delegated_project_number
# The password hash algorithm.
# Corresponds to the JSON property `hashAlgorithm`
# @return [String]
@ -644,12 +664,13 @@ module Google
# Update properties of this object
def update!(**args)
@hash_algorithm = args[:hash_algorithm] unless args[:hash_algorithm].nil?
@memory_cost = args[:memory_cost] unless args[:memory_cost].nil?
@rounds = args[:rounds] unless args[:rounds].nil?
@salt_separator = args[:salt_separator] unless args[:salt_separator].nil?
@signer_key = args[:signer_key] unless args[:signer_key].nil?
@users = args[:users] unless args[:users].nil?
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
@memory_cost = args[:memory_cost] if args.key?(:memory_cost)
@rounds = args[:rounds] if args.key?(:rounds)
@salt_separator = args[:salt_separator] if args.key?(:salt_separator)
@signer_key = args[:signer_key] if args.key?(:signer_key)
@users = args[:users] if args.key?(:users)
end
end
@ -657,6 +678,12 @@ module Google
class VerifyAssertionRequest
include Google::Apis::Core::Hashable
# GCP project number of the requesting delegated app. Currently only intended
# for Firebase V1 migration.
# Corresponds to the JSON property `delegatedProjectNumber`
# @return [String]
attr_accessor :delegated_project_number
# Instance id token of the app.
# Corresponds to the JSON property `instanceId`
# @return [String]
@ -695,12 +722,13 @@ module Google
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] unless args[:instance_id].nil?
@pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil?
@post_body = args[:post_body] unless args[:post_body].nil?
@request_uri = args[:request_uri] unless args[:request_uri].nil?
@return_refresh_token = args[:return_refresh_token] unless args[:return_refresh_token].nil?
@session_id = args[:session_id] unless args[:session_id].nil?
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
@post_body = args[:post_body] if args.key?(:post_body)
@request_uri = args[:request_uri] if args.key?(:request_uri)
@return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
@session_id = args[:session_id] if args.key?(:session_id)
end
end
@ -724,8 +752,8 @@ module Google
# Update properties of this object
def update!(**args)
@instance_id = args[:instance_id] unless args[:instance_id].nil?
@token = args[:token] unless args[:token].nil?
@instance_id = args[:instance_id] if args.key?(:instance_id)
@token = args[:token] if args.key?(:token)
end
end
@ -775,13 +803,13 @@ module Google
# Update properties of this object
def update!(**args)
@captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil?
@captcha_response = args[:captcha_response] unless args[:captcha_response].nil?
@delegated_project_number = args[:delegated_project_number] unless args[:delegated_project_number].nil?
@email = args[:email] unless args[:email].nil?
@instance_id = args[:instance_id] unless args[:instance_id].nil?
@password = args[:password] unless args[:password].nil?
@pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil?
@captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
@captcha_response = args[:captcha_response] if args.key?(:captcha_response)
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@email = args[:email] if args.key?(:email)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@password = args[:password] if args.key?(:password)
@pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
end
end
@ -816,10 +844,10 @@ module Google
# Update properties of this object
def update!(**args)
@client_id = args[:client_id] unless args[:client_id].nil?
@enabled = args[:enabled] unless args[:enabled].nil?
@experiment_percent = args[:experiment_percent] unless args[:experiment_percent].nil?
@provider = args[:provider] unless args[:provider].nil?
@client_id = args[:client_id] if args.key?(:client_id)
@enabled = args[:enabled] if args.key?(:enabled)
@experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
@provider = args[:provider] if args.key?(:provider)
end
end
@ -874,14 +902,14 @@ module Google
# Update properties of this object
def update!(**args)
@captcha_resp = args[:captcha_resp] unless args[:captcha_resp].nil?
@challenge = args[:challenge] unless args[:challenge].nil?
@email = args[:email] unless args[:email].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@kind = args[:kind] unless args[:kind].nil?
@new_email = args[:new_email] unless args[:new_email].nil?
@request_type = args[:request_type] unless args[:request_type].nil?
@user_ip = args[:user_ip] unless args[:user_ip].nil?
@captcha_resp = args[:captcha_resp] if args.key?(:captcha_resp)
@challenge = args[:challenge] if args.key?(:challenge)
@email = args[:email] if args.key?(:email)
@id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind)
@new_email = args[:new_email] if args.key?(:new_email)
@request_type = args[:request_type] if args.key?(:request_type)
@user_ip = args[:user_ip] if args.key?(:user_ip)
end
end
@ -905,8 +933,8 @@ module Google
# Update properties of this object
def update!(**args)
@email = args[:email] unless args[:email].nil?
@kind = args[:kind] unless args[:kind].nil?
@email = args[:email] if args.key?(:email)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -950,12 +978,12 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@kind = args[:kind] unless args[:kind].nil?
@new_email = args[:new_email] unless args[:new_email].nil?
@provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind)
@new_email = args[:new_email] if args.key?(:new_email)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
end
#
@ -984,9 +1012,9 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@provider_id = args[:provider_id] unless args[:provider_id].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
end
@ -1011,8 +1039,8 @@ module Google
# Update properties of this object
def update!(**args)
@error = args[:error] unless args[:error].nil?
@kind = args[:kind] unless args[:kind].nil?
@error = args[:error] if args.key?(:error)
@kind = args[:kind] if args.key?(:kind)
end
#
@ -1035,8 +1063,8 @@ module Google
# Update properties of this object
def update!(**args)
@index = args[:index] unless args[:index].nil?
@message = args[:message] unless args[:message].nil?
@index = args[:index] if args.key?(:index)
@message = args[:message] if args.key?(:message)
end
end
end
@ -1113,18 +1141,18 @@ module Google
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] unless args[:disabled].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@email_verified = args[:email_verified] unless args[:email_verified].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@password_hash = args[:password_hash] unless args[:password_hash].nil?
@password_updated_at = args[:password_updated_at] unless args[:password_updated_at].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil?
@salt = args[:salt] unless args[:salt].nil?
@valid_since = args[:valid_since] unless args[:valid_since].nil?
@version = args[:version] unless args[:version].nil?
@disabled = args[:disabled] if args.key?(:disabled)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@email_verified = args[:email_verified] if args.key?(:email_verified)
@local_id = args[:local_id] if args.key?(:local_id)
@password_hash = args[:password_hash] if args.key?(:password_hash)
@password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
@salt = args[:salt] if args.key?(:salt)
@valid_since = args[:valid_since] if args.key?(:valid_since)
@version = args[:version] if args.key?(:version)
end
#
@ -1158,10 +1186,10 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@federated_id = args[:federated_id] unless args[:federated_id].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@provider_id = args[:provider_id] unless args[:provider_id].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@federated_id = args[:federated_id] if args.key?(:federated_id)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
end
@ -1347,37 +1375,37 @@ module Google
# Update properties of this object
def update!(**args)
@action = args[:action] unless args[:action].nil?
@app_installation_url = args[:app_installation_url] unless args[:app_installation_url].nil?
@app_scheme = args[:app_scheme] unless args[:app_scheme].nil?
@context = args[:context] unless args[:context].nil?
@date_of_birth = args[:date_of_birth] unless args[:date_of_birth].nil?
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@email_recycled = args[:email_recycled] unless args[:email_recycled].nil?
@email_verified = args[:email_verified] unless args[:email_verified].nil?
@federated_id = args[:federated_id] unless args[:federated_id].nil?
@first_name = args[:first_name] unless args[:first_name].nil?
@full_name = args[:full_name] unless args[:full_name].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@input_email = args[:input_email] unless args[:input_email].nil?
@kind = args[:kind] unless args[:kind].nil?
@language = args[:language] unless args[:language].nil?
@last_name = args[:last_name] unless args[:last_name].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@need_confirmation = args[:need_confirmation] unless args[:need_confirmation].nil?
@need_email = args[:need_email] unless args[:need_email].nil?
@nick_name = args[:nick_name] unless args[:nick_name].nil?
@oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil?
@oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil?
@oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil?
@oauth_request_token = args[:oauth_request_token] unless args[:oauth_request_token].nil?
@oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil?
@original_email = args[:original_email] unless args[:original_email].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@provider_id = args[:provider_id] unless args[:provider_id].nil?
@time_zone = args[:time_zone] unless args[:time_zone].nil?
@verified_provider = args[:verified_provider] unless args[:verified_provider].nil?
@action = args[:action] if args.key?(:action)
@app_installation_url = args[:app_installation_url] if args.key?(:app_installation_url)
@app_scheme = args[:app_scheme] if args.key?(:app_scheme)
@context = args[:context] if args.key?(:context)
@date_of_birth = args[:date_of_birth] if args.key?(:date_of_birth)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@email_recycled = args[:email_recycled] if args.key?(:email_recycled)
@email_verified = args[:email_verified] if args.key?(:email_verified)
@federated_id = args[:federated_id] if args.key?(:federated_id)
@first_name = args[:first_name] if args.key?(:first_name)
@full_name = args[:full_name] if args.key?(:full_name)
@id_token = args[:id_token] if args.key?(:id_token)
@input_email = args[:input_email] if args.key?(:input_email)
@kind = args[:kind] if args.key?(:kind)
@language = args[:language] if args.key?(:language)
@last_name = args[:last_name] if args.key?(:last_name)
@local_id = args[:local_id] if args.key?(:local_id)
@need_confirmation = args[:need_confirmation] if args.key?(:need_confirmation)
@need_email = args[:need_email] if args.key?(:need_email)
@nick_name = args[:nick_name] if args.key?(:nick_name)
@oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
@oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
@oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
@oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token)
@oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
@original_email = args[:original_email] if args.key?(:original_email)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@time_zone = args[:time_zone] if args.key?(:time_zone)
@verified_provider = args[:verified_provider] if args.key?(:verified_provider)
end
end
@ -1401,8 +1429,8 @@ module Google
# Update properties of this object
def update!(**args)
@id_token = args[:id_token] unless args[:id_token].nil?
@kind = args[:kind] unless args[:kind].nil?
@id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind)
end
end
@ -1469,16 +1497,16 @@ module Google
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] unless args[:display_name].nil?
@email = args[:email] unless args[:email].nil?
@id_token = args[:id_token] unless args[:id_token].nil?
@kind = args[:kind] unless args[:kind].nil?
@local_id = args[:local_id] unless args[:local_id].nil?
@oauth_access_token = args[:oauth_access_token] unless args[:oauth_access_token].nil?
@oauth_authorization_code = args[:oauth_authorization_code] unless args[:oauth_authorization_code].nil?
@oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil?
@photo_url = args[:photo_url] unless args[:photo_url].nil?
@registered = args[:registered] unless args[:registered].nil?
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind)
@local_id = args[:local_id] if args.key?(:local_id)
@oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
@oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
@oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@registered = args[:registered] if args.key?(:registered)
end
end
end

View File

@ -223,6 +223,7 @@ module Google
class DeleteAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegated_project_number, as: 'delegatedProjectNumber'
property :local_id, as: 'localId'
end
end
@ -230,6 +231,7 @@ module Google
class DownloadAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegated_project_number, as: 'delegatedProjectNumber'
property :max_results, as: 'maxResults'
property :next_page_token, as: 'nextPageToken'
end
@ -304,6 +306,7 @@ module Google
class UploadAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegated_project_number, as: 'delegatedProjectNumber'
property :hash_algorithm, as: 'hashAlgorithm'
property :memory_cost, as: 'memoryCost'
property :rounds, as: 'rounds'
@ -317,6 +320,7 @@ module Google
class VerifyAssertionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegated_project_number, as: 'delegatedProjectNumber'
property :instance_id, as: 'instanceId'
property :pending_id_token, as: 'pendingIdToken'
property :post_body, as: 'postBody'

View File

@ -49,9 +49,9 @@ module Google
# Update properties of this object
def update!(**args)
@context = args[:context] unless args[:context].nil?
@type = args[:type] unless args[:type].nil?
@item_list_element = args[:item_list_element] unless args[:item_list_element].nil?
@context = args[:context] if args.key?(:context)
@type = args[:type] if args.key?(:type)
@item_list_element = args[:item_list_element] if args.key?(:item_list_element)
end
end
end

Some files were not shown because too many files have changed in this diff Show More