Class: Google::Apis::AccesscontextmanagerV1::ServicePattern

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/accesscontextmanager_v1/classes.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb

Overview

Service patterns used to allow access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServicePattern

Returns a new instance of ServicePattern.



2014
2015
2016
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2014

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

Instance Attribute Details

#modifiersArray<Google::Apis::AccesscontextmanagerV1::Modifier>

Modifiers to apply to the requests that match the URL pattern. Corresponds to the JSON property modifiers



2000
2001
2002
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2000

def modifiers
  @modifiers
end

#patternString

URL pattern to allow. Only patterns of ".googleapis.com/", "www.googleapis. com//" and ".appspot.com/ forms are supported, where should be alphanumerical name. Corresponds to the JSON property pattern

Returns:

  • (String)


2007
2008
2009
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2007

def pattern
  @pattern
end

#serviceString

Supported service to allow. Corresponds to the JSON property service

Returns:

  • (String)


2012
2013
2014
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2012

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2019
2020
2021
2022
2023
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2019

def update!(**args)
  @modifiers = args[:modifiers] if args.key?(:modifiers)
  @pattern = args[:pattern] if args.key?(:pattern)
  @service = args[:service] if args.key?(:service)
end