Skip to content

Commit

Permalink
Autogenerated update (2019-04-25)
Browse files Browse the repository at this point in the history
Delete:
- logging_v2beta1

Update:
- adexchangebuyer2_v2beta1
- admin_reports_v1
- alertcenter_v1beta1
- androiddeviceprovisioning_v1
- androidenterprise_v1
- androidmanagement_v1
- androidpublisher_v2
- androidpublisher_v3
- appengine_v1
- appengine_v1beta
- appsactivity_v1
- bigtableadmin_v1
- bigtableadmin_v2
- binaryauthorization_v1beta1
- calendar_v3
- classroom_v1
- cloudasset_v1
- cloudasset_v1beta1
- cloudbilling_v1
- cloudbuild_v1alpha1
- clouderrorreporting_v1beta1
- cloudfunctions_v1
- cloudfunctions_v1beta2
- cloudiot_v1
- cloudprivatecatalogproducer_v1beta1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- cloudsearch_v1
- cloudtasks_v2
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- containeranalysis_v1alpha1
- containeranalysis_v1beta1
- content_v2
- content_v2_1
- datastore_v1
- datastore_v1beta1
- datastore_v1beta3
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- dns_v1
- dns_v1beta2
- dns_v2beta1
- docs_v1
- drive_v2
- drive_v3
- driveactivity_v2
- file_v1
- file_v1beta1
- firebasedynamiclinks_v1
- firebasehosting_v1beta1
- firebaserules_v1
- firestore_v1
- firestore_v1beta1
- firestore_v1beta2
- fitness_v1
- games_v1
- gmail_v1
- iap_v1
- iap_v1beta1
- jobs_v3
- jobs_v3p1beta1
- language_v1
- language_v1beta2
- ml_v1
- monitoring_v3
- oauth2_v1
- oauth2_v2
- people_v1
- plus_domains_v1
- plus_v1
- poly_v1
- pubsub_v1
- pubsub_v1beta2
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- run_v1alpha1
- runtimeconfig_v1beta1
- servicebroker_v1
- servicebroker_v1alpha1
- servicebroker_v1beta1
- serviceconsumermanagement_v1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sourcerepo_v1
- spanner_v1
- sqladmin_v1beta4
- storage_v1
- storagetransfer_v1
- texttospeech_v1beta1
- toolresults_v1beta3
- tpu_v1
- tpu_v1alpha1
- vault_v1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- youtube_partner_v1
- youtube_v3
- youtubereporting_v1
  • Loading branch information
googleapis-publisher committed Apr 25, 2019
1 parent 06df528 commit 50a63b4
Show file tree
Hide file tree
Showing 299 changed files with 34,307 additions and 4,958 deletions.
2,307 changes: 2,307 additions & 0 deletions api_names_out.yaml

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions generated/google/apis/accessapproval_v1beta1.rb
Original file line number Diff line number Diff line change
@@ -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/accessapproval_v1beta1/service.rb'
require 'google/apis/accessapproval_v1beta1/classes.rb'
require 'google/apis/accessapproval_v1beta1/representations.rb'

module Google
module Apis
# Access Approval API
#
# An API for controlling access to data by Google personnel.
#
# @see https://cloud.google.com/access-approval/docs
module AccessapprovalV1beta1
VERSION = 'V1beta1'
REVISION = '20190412'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end
306 changes: 306 additions & 0 deletions generated/google/apis/accessapproval_v1beta1/classes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
# 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 AccessapprovalV1beta1

# Settings on a Project/Folder/Organization related to Access Approval.
class AccessApprovalSettings
include Google::Apis::Core::Hashable

# The resource name of the settings. Format is one of:
# <ol>
# <li>"projects/`project_id`/accessApprovalSettings"</li>
# <li>"folders/`folder_id`/accessApprovalSettings"</li>
# <li>"organizations/`organization_id`/accessApprovalSettings"</li>
# <ol>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# A list of email addresses to which notifications relating to approval
# requests should be sent. Notifications relating to a resource will be sent
# to all emails in the settings of ancestor resources of that resource.
# Corresponds to the JSON property `notificationEmails`
# @return [Array<String>]
attr_accessor :notification_emails

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@notification_emails = args[:notification_emails] if args.key?(:notification_emails)
end
end

# Home office and physical location of the principal.
class AccessLocations
include Google::Apis::Core::Hashable

# The "home office" location of the principal. A two-letter country code
# (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
# limited situations Google systems may refer refer to a region code instead
# of a country code.
# Possible Region Codes:
# <ol>
# <li>ASI: Asia</li>
# <li>EUR: Europe</li>
# <li>OCE: Oceania</li>
# <li>AFR: Africa</li>
# <li>NAM: North America</li>
# <li>SAM: South America</li>
# <li>ANT: Antarctica</li>
# <li>ANY: Any location</li>
# </ol>
# Corresponds to the JSON property `principalOfficeCountry`
# @return [String]
attr_accessor :principal_office_country

# Physical location of the principal at the time of the access. A
# two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
# a region code. In some limited situations Google systems may refer refer to
# a region code instead of a country code.
# Possible Region Codes:
# <ol>
# <li>ASI: Asia</li>
# <li>EUR: Europe</li>
# <li>OCE: Oceania</li>
# <li>AFR: Africa</li>
# <li>NAM: North America</li>
# <li>SAM: South America</li>
# <li>ANT: Antarctica</li>
# <li>ANY: Any location</li>
# </ol>
# Corresponds to the JSON property `principalPhysicalLocationCountry`
# @return [String]
attr_accessor :principal_physical_location_country

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@principal_office_country = args[:principal_office_country] if args.key?(:principal_office_country)
@principal_physical_location_country = args[:principal_physical_location_country] if args.key?(:principal_physical_location_country)
end
end

#
class AccessReason
include Google::Apis::Core::Hashable

# More detail about certain reason types. See comments for each type above.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail

# Type of access justification.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@detail = args[:detail] if args.key?(:detail)
@type = args[:type] if args.key?(:type)
end
end

# A request for the customer to approve access to a resource.
class ApprovalRequest
include Google::Apis::Core::Hashable

# A decision that has been made to approve access to a resource.
# Corresponds to the JSON property `approve`
# @return [Google::Apis::AccessapprovalV1beta1::ApproveDecision]
attr_accessor :approve

# A decision that has been made to dismiss an approval request.
# Corresponds to the JSON property `dismiss`
# @return [Google::Apis::AccessapprovalV1beta1::DismissDecision]
attr_accessor :dismiss

# The resource name of the request. Format is
# "`projects|folders|organizations`/`id`/approvalRequests/`approval_request_id`".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# The time at which approval was requested.
# Corresponds to the JSON property `requestTime`
# @return [String]
attr_accessor :request_time

# The requested expiration for the approval. If the request is approved,
# access will be granted from the time of approval until the expiration time.
# Corresponds to the JSON property `requestedExpiration`
# @return [String]
attr_accessor :requested_expiration

# Home office and physical location of the principal.
# Corresponds to the JSON property `requestedLocations`
# @return [Google::Apis::AccessapprovalV1beta1::AccessLocations]
attr_accessor :requested_locations

# The justification for which approval is being requested.
# Corresponds to the JSON property `requestedReason`
# @return [Google::Apis::AccessapprovalV1beta1::AccessReason]
attr_accessor :requested_reason

# The resource for which approval is being requested. The format of the
# resource name is defined at
# https://cloud.google.com/apis/design/resource_names. The resource name here
# may either be a "full" resource name (e.g.
# "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
# resource name (e.g. "shelves/shelf1/books/book2") as described in the
# resource name specification.
# Corresponds to the JSON property `requestedResourceName`
# @return [String]
attr_accessor :requested_resource_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@approve = args[:approve] if args.key?(:approve)
@dismiss = args[:dismiss] if args.key?(:dismiss)
@name = args[:name] if args.key?(:name)
@request_time = args[:request_time] if args.key?(:request_time)
@requested_expiration = args[:requested_expiration] if args.key?(:requested_expiration)
@requested_locations = args[:requested_locations] if args.key?(:requested_locations)
@requested_reason = args[:requested_reason] if args.key?(:requested_reason)
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
end
end

# Request to approve an ApprovalRequest.
class ApproveApprovalRequestMessage
include Google::Apis::Core::Hashable

# The expiration time of this approval.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@expire_time = args[:expire_time] if args.key?(:expire_time)
end
end

# A decision that has been made to approve access to a resource.
class ApproveDecision
include Google::Apis::Core::Hashable

# The time at which approval was granted.
# Corresponds to the JSON property `approveTime`
# @return [String]
attr_accessor :approve_time

# The time at which the approval expires.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@approve_time = args[:approve_time] if args.key?(:approve_time)
@expire_time = args[:expire_time] if args.key?(:expire_time)
end
end

# Request to dismiss an approval request.
class DismissApprovalRequestMessage
include Google::Apis::Core::Hashable

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
end
end

# A decision that has been made to dismiss an approval request.
class DismissDecision
include Google::Apis::Core::Hashable

# The time at which the approval request was dismissed.
# Corresponds to the JSON property `dismissTime`
# @return [String]
attr_accessor :dismiss_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@dismiss_time = args[:dismiss_time] if args.key?(:dismiss_time)
end
end

# Response to listing of ApprovalRequest objects.
class ListApprovalRequestsResponse
include Google::Apis::Core::Hashable

# Approval request details.
# Corresponds to the JSON property `approvalRequests`
# @return [Array<Google::Apis::AccessapprovalV1beta1::ApprovalRequest>]
attr_accessor :approval_requests

# Token to retrieve the next page of results, or empty if there are no more.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@approval_requests = args[:approval_requests] if args.key?(:approval_requests)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
end
end
end
Loading

0 comments on commit 50a63b4

Please sign in to comment.